help-octave
[Top][All Lists]
Advanced

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

Re: Naming variables using existing variables....


From: Peter
Subject: Re: Naming variables using existing variables....
Date: Mon, 28 Feb 2011 17:28:05 +0100

> Thanks for replying so quick. The only problem with this is that I want my
> input to be matrices of different size depending on the local variable. So
> something like this:
> 

Why not use cell arrays?

A=cell(n,1);
for ii=1:n
  A{ii}=rand(ii,ii);
end;

Cheers,

Peter.



reply via email to

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