help-octave
[Top][All Lists]
Advanced

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

Re: Array of variable dimension


From: Miroslaw Kwasniak
Subject: Re: Array of variable dimension
Date: Fri, 11 Feb 2005 19:21:17 +0100
User-agent: Mutt/1.5.6+20040907i

On Fri, Feb 11, 2005 at 10:24:13PM +0530, Deepak, R. wrote:
> How can I create an 'y'-dimensional array of zeros, where each dimension can
> take (2 * n + 2) values?
> 
> 'y' and 'n' are variables given at runtime.

y=4;
n=5; 
N=(2 * n + 2);

M=zeros(ones(y,1)*N);
size(M)



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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