Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Top N values in a multidimensional array
Date: Wed, 29 Oct 2008 15:14:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <ge9ujq$3m4$1@fred.mathworks.com>
References: <ge7q06$4k2$1@fred.mathworks.com> <ge7ski$aml$1@fred.mathworks.com> <ge9nu3$cco$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225293242 3780 172.30.248.35 (29 Oct 2008 15:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 29 Oct 2008 15:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:497829


I see, you actually have to give it 3 output values

[i j k] = ind2sub();

I thought it would just make 'output' a 1x3 vector with
output = ind2sub();

but I was wrong.

Thanks,
Dave