Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: a problem of &#8220;if&#8230;else&#8221; statement
Date: Wed, 13 Apr 2011 19:31:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <io4tlp$f5b$1@fred.mathworks.com>
References: <io3sic$9kk$1@fred.mathworks.com> <io4qie$erk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1302723065 15531 172.30.248.38 (13 Apr 2011 19:31:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 13 Apr 2011 19:31:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:721746

"Roger Stafford" wrote in message <io4qie$erk$1@fred.mathworks.com>...
> ......
> t1 = M(:,1)==1);
> t3 = M(:,2)==1);
> .......
- - - - - - -
  Correction:  There were a couple of unwanted parentheses above.

t1 = M(:,1)==1;
t3 = M(:,2)==1;

Roger Stafford