Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: cell array size
Date: Mon, 11 Aug 2008 03:32:03 +0000 (UTC)
Organization: University of Portsmouth
Lines: 43
Message-ID: <g7obrj$p41$1@fred.mathworks.com>
References: <g7o91i$add$1@fred.mathworks.com> <g7o9ie$dnh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1218425523 25729 172.30.248.37 (11 Aug 2008 03:32:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 11 Aug 2008 03:32:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1172364
Xref: news.mathworks.com comp.soft-sys.matlab:484807



"Dina " <corsair_dee@hotmail.com> wrote in message 
<g7o9ie$dnh$1@fred.mathworks.com>...
> "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);

i have tried with the function ,but it doesnt shows that to 
me.
if u c my code

load_matrix=[];  % creating a load matrix which is 
summention of paths on each flow
n=size(route_path); 
for i=1:n
    
   El=route_path(i)
   m=size(El);
   
     for j=1:m-1
        load_matrix =[load_matrix  traffic_m(El(j),El
(j+1))];
     end
    
end