Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Getting the min and max of a matrix
Date: Sun, 1 Mar 2009 08:13:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 8
Message-ID: <godg2e$4nc$1@fred.mathworks.com>
References: <goc1a7$g2q$1@fred.mathworks.com> <goc2dp$re1$1@fred.mathworks.com> <goc5sd$bvd$1@fred.mathworks.com> <goc73p$11l$1@fred.mathworks.com> <goc7mh$8er$1@fred.mathworks.com> <goc899$h64$1@fred.mathworks.com> <gocuc5$mmf$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 1235895182 4844 172.30.248.37 (1 Mar 2009 08:13:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Mar 2009 08:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:521633

"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gocuc5$mmf$1@fred.mathworks.com>...
> Is there any way to do this without using a temporary copy of A?

Any good reason why this is requires?

If a copy of A takes too much place compares to the list of index (B). That means you could implement a logical mask in sparse matrix, which will be very similar structured to B but much more versatile to work with.

Bruno