Path: news.mathworks.com!not-for-mail
From: "Matthew Simoneau" <matthew@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Weird publish behavior
Date: Fri, 28 Sep 2007 15:22:17 +0000 (UTC)
Organization: The MathWorks
Lines: 6
Message-ID: <fdj679$1ru$1@fred.mathworks.com>
References: <fdfrjf$4tf$1@fred.mathworks.com> <fdgl88$j5h$1@fred.mathworks.com> <fdid96$m8r$1@fred.mathworks.com>
Reply-To: "Matthew Simoneau" <matthew@mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1190992937 1918 172.30.248.38 (28 Sep 2007 15:22:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 28 Sep 2007 15:22:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 25640
Xref: news.mathworks.com comp.soft-sys.matlab:430615



&& always wants an expression that evaluates to a scalar
logical and 'false' doesn't, which is the error message
you're seeing.  In the situation that's working for you, the
&& short-circuits and the second half is never evaluated.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/logicaloperatorsshortcircuit.html