From help-request at octave dot org Fri Feb 11 12:16:24 2005 Subject: Re: Array of variable dimension From: Miroslaw Kwasniak To: help at octave dot org Date: Fri, 11 Feb 2005 19:21:17 +0100 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 -------------------------------------------------------------