help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function in a Loop output problem


From: bpabbott
Subject: Re: Function in a Loop output problem
Date: Wed, 08 Sep 2010 15:04:25 +0000 (GMT)

On 08 Sep, 2010,at 10:58 AM, dirac <address@hidden> wrote:


Sorry I should have made it more clear. a and b are vectors of equal lengths
but not for each iteration i.e for i=1 length(a)=399 length(b)=399 but for
i=2 length(a)=length(b)=421 etc

Thanks again Ben!
MA
 
The you can use cells to store the info.

a = b = cell (1, 20);
for i = 1:20
  [a{i}, b{i}] = function (variables);
endfor

Ben

reply via email to

[Prev in Thread] Current Thread [Next in Thread]