Path: news.mathworks.com!not-for-mail
From: "jcurr Curran" <johncurran20@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simple matrix manipulation question
Date: Thu, 16 Jul 2009 16:13:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <h3njiu$8m6$1@fred.mathworks.com>
References: <h3lt89$b6e$1@fred.mathworks.com> <h3m1dc$5gs$1@fred.mathworks.com>
Reply-To: "jcurr Curran" <johncurran20@yahoo.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 1247760798 8902 172.30.248.38 (16 Jul 2009 16:13:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Jul 2009 16:13:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1907356
Xref: news.mathworks.com comp.soft-sys.matlab:556006


Right, but that method involves looping over each i. Is there a way to do this without loops?

"Darren Rowland" <darrenjremovethisrowland@hotmail.com> wrote in message <h3m1dc$5gs$1@fred.mathworks.com>...
> Ok, I see what you want now
> c(i) = min( A(1:b(i)) );