Path: news.mathworks.com!not-for-mail
From: "Ariel Krieger" <srigi001@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: EVAL within EVAL
Date: Mon, 2 Nov 2009 03:34:02 +0000 (UTC)
Organization: New York University
Lines: 13
Message-ID: <hcljva$e6j$1@fred.mathworks.com>
References: <hclda3$slq$1@fred.mathworks.com> <f94955c1-38ae-48ba-a617-984604e29e1a@j11g2000vbi.googlegroups.com> <c18aae70-b609-444f-9afa-cb27576d39f9@l13g2000yqb.googlegroups.com>
Reply-To: "Ariel Krieger" <srigi001@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257132842 14547 172.30.248.35 (2 Nov 2009 03:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Nov 2009 03:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1889337
Xref: news.mathworks.com comp.soft-sys.matlab:581719


ImageAnalyst <imageanalyst@mailinator.com> wrote in message <c18aae70-b609-444f-9afa-cb27576d39f9@l13g2000yqb.googlegroups.com>...
> Do you want to just get the job done, or be fancy/tricky about it?  If
> you know the number and names of the arrays in advance, and you just
> want to get it done, then copy and paste works pretty well.
> N1(~any(N1,2),:) = [];
> N2(~any(N2,2),:) = [];
> N3(~any(N3,2),:) = [];
> N4(~any(N4,2),:) = [];
> N5(~any(N5,2),:) = [];
> and so on up to N100.
> You could probably do all 100 lines in 2 or 3 minutes.

unfortunately I don't know in advance how many of these matrices there will be, it's user dependent. believe me, I'm not ashamed of copy/pasting :)