From help-octave-request at bevo dot che dot wisc dot edu Mon Dec 22 12:59:37 2003 Subject: next problem From: Rich Drewes To: help-octave at bevo dot che dot wisc dot edu Date: Mon, 22 Dec 2003 10:56:46 -0800 (PST) (Thanks Geraint Paul Bevan for the suggestion, that solved the problem.) Hello, Matlab supports the following: x=[1, 2, 3, 4] y(:,:,:,:)=[x, x, x, x] Octave supports it for two indices, e.g.: y(:,:)=[x, x] But for more than two indices, it fails with an error like this: error: invalid number of indices (4) for indexed assignment Is there a convenient work around for this? Thanks! Rich ------------------------------------------------------------- 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 -------------------------------------------------------------