Path: news.mathworks.com!not-for-mail
From: "P Sherry" <pistolpetesherry@nospam.hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: length of array
Date: Mon, 30 Jul 2007 22:35:52 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <f8lp48$2jd$1@fred.mathworks.com>
References: <f8l6hk$epd$1@fred.mathworks.com> <f8le7k$o02$1@fred.mathworks.com> <f8lldc$h41$1@fred.mathworks.com> <f8lnqj$ghd$1@canopus.cc.umanitoba.ca>
Reply-To: "P Sherry" <pistolpetesherry@nospam.hotmail.com>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185834952 2669 172.30.248.36 (30 Jul 2007 22:35:52 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 30 Jul 2007 22:35:52 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1068203
Xref: news.mathworks.com comp.soft-sys.matlab:421770



> find( ~ismember( 0:N-1, P{2} ), 1 )
> 
> > there is also an inner loop i.e. P{2,b} so l-1 cannot = any of {2,:}
> 
> What is the size of P? Is it a 1 x something cell array, each
> member of which is an array? Or is it a 2 x something cell array,
> each member of which is an array? When you write P{2,b} do
> you mean "the b'th column of the 2nd row of P", or do you mean
> "the b'th element of the array P{2}" ? If P is really a 2 x something
> cell array, P{2} is the same as P{2,1} . 
> -- 
> Programming is what happens while you're busy making other plans.


the total size of P is N (e.g. 16) but can be split over a number of columns cells in any array i.e length of P{2} = N. its hard to explain but it based on permutations so each cell may be a different size.

for P{2,b} i mean the b'th column of the 2nd row of P  

have to change the code around a bit to use :
find( ~ismember( 0:N-1, P{2} ), 1 )
so il keep you updated

thanks