Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Help in vectorizing code
Date: Tue, 28 Apr 2009 01:48:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <gt5n8h$1kk$1@fred.mathworks.com>
References: <1e6f5074-edce-417a-b0a5-b62db0fb033f@w31g2000prd.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240883281 1684 172.30.248.37 (28 Apr 2009 01:48:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 28 Apr 2009 01:48:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1708920
Xref: news.mathworks.com comp.soft-sys.matlab:535841


Sorry, I think the line above
mask(:,idxs) = 1;
will not work as desired. Should probably be instead

mask([1:5],idxs) = 1;

Haven't the chance to check though.