Path: news.mathworks.com!not-for-mail
From: "Dina " <corsair_dee@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: cell array size
Date: Mon, 11 Aug 2008 02:53:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <g7o9ie$dnh$1@fred.mathworks.com>
References: <g7o91i$add$1@fred.mathworks.com>
Reply-To: "Dina " <corsair_dee@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1218423182 14065 172.30.248.38 (11 Aug 2008 02:53:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 11 Aug 2008 02:53:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1461162
Xref: news.mathworks.com comp.soft-sys.matlab:484799



"Hemin " <hemin.essa@ymail.com> wrote in message 
<g7o91i$add$1@fred.mathworks.com>...
> I have cell array like that , for example multiple rows 6 
> rows with one column:
> {[1,2]
> [1,2,3]
> [1,2,3,4]
> [1,2,3,4,5]
> [1,2,3,4,5,6]}
> 
> so how I can make an array that calculate size of each 
row.
> for example the second row is 3, third row is 4 and 4th 
row 
> is 5 elements.
> does any function that can make the length or the size of 
> each row of that cell array?

u can use a for loop from 1:n and with every loop use the 
size function .. size(x);