Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!postnews.google.com!i29g2000prf.googlegroups.com!not-for-mail
From: Ross <fed.rossi@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: sub-min
Date: Mon, 18 Feb 2008 17:43:32 -0800 (PST)
Organization: http://groups.google.com
Lines: 10
Message-ID: <3d8a1aea-b86f-4987-aea9-0c2420ee73e5@i29g2000prf.googlegroups.com>
NNTP-Posting-Host: 165.124.164.215
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1203385412 13819 127.0.0.1 (19 Feb 2008 01:43:32 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 19 Feb 2008 01:43:32 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i29g2000prf.googlegroups.com; posting-host=165.124.164.215; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) 
Xref: news.mathworks.com comp.soft-sys.matlab:452257


Hi everyone,

I have two 2-dim arrays, A and C. C is zeros and ones.
I and want to find min(A, [ ] , 2), but only considering elements that
are ones in matrix C.

Do you know a fast way to compute this in matlab?

Thank you!
Ross