Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Faster and vectorized
Date: Thu, 29 Oct 2009 17:19:18 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 9
Message-ID: <hcciqm$a3$1@fred.mathworks.com>
References: <hcbr1h$ne0$1@fred.mathworks.com> <hcchsn$pv$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
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 1256836758 323 172.30.248.37 (29 Oct 2009 17:19:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Oct 2009 17:19:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:581071


The below way of indexing is more correct:

...
idx = unC ~= 0;
header = unC(idx).';
Out= [header; Out(:,idx)];
...

% Bruno