From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Elements comaprison using ALL statement
Date: Fri, 13 May 2011 20:08:05 +0000 (UTC)
Organization: Xoran Technologies
Lines: 9
Message-ID: <iqk334$eka$>
References: <iqjvvp$3dq$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1305317285 14986 (13 May 2011 20:08:05 GMT)
NNTP-Posting-Date: Fri, 13 May 2011 20:08:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:726703

"Liana" wrote in message <iqjvvp$3dq$>...
> Hi!
> >> if all(X(:) < Y(:))
> This expression sequentially compares each pair of X and Y elements. But  I need to check if each element in X array is smaller than ANY element in Y array. How can I do this?

Hint: bsxfun