Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!i8g2000pro.googlegroups.com!not-for-mail
From: Nathan <ngreco32@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simple matrix manipulation question
Date: Thu, 16 Jul 2009 11:47:46 -0700 (PDT)
Organization: http://groups.google.com
Lines: 16
Message-ID: <f772e76b-b175-4d2f-ad33-574430b3bbe8@i8g2000pro.googlegroups.com>
References: <h3lt89$b6e$1@fred.mathworks.com> <h3m1dc$5gs$1@fred.mathworks.com> 
	<f83d9ae3-79bf-4717-be07-cb7ac76d00a1@12g2000pri.googlegroups.com> 
	<h3nn78$53u$1@fred.mathworks.com>
NNTP-Posting-Host: 198.206.219.33
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1247770066 8729 127.0.0.1 (16 Jul 2009 18:47:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 16 Jul 2009 18:47:46 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i8g2000pro.googlegroups.com; posting-host=198.206.219.33; 
	posting-account=_KeVcAoAAAB7j3xn35ujaQ0BoQhuzwJP
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) 
	Gecko/20090624 Firefox/3.5,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 wwwproxy-son-ca-01.ca.sandia.gov:80 (squid/2.5.STABLE14)
Xref: news.mathworks.com comp.soft-sys.matlab:556061


On Jul 16, 10:15 am, "jcurr Curran" <johncurra...@yahoo.com> wrote:
> This computes the minimum element in each row of A, it's not quite what I was looking for.

Ah, I get what you mean now.
I haven't been able to come up with anything other than loops for this
problem.
What is so bad about having a loop anyways? It's not that slow.
How big is your matrix A?
With a basic for loop
for i = 1:size(A,1)
c(i) = min(A(i,1:b(i)));
end

computation times aren't too bad...
-Nathan