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$>
References: <goc1a7$g2q$> <goc2dp$re1$> <goc5sd$bvd$> <goc73p$11l$> <goc7mh$8er$> <goc899$h64$> <gocuc5$mmf$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1235895182 4844 (1 Mar 2009 08:13:02 GMT)
NNTP-Posting-Date: Sun, 1 Mar 2009 08:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:521633

"Diego Zegarra" <> wrote in message <gocuc5$mmf$>...
> 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.