help-octave
[Top][All Lists]
Advanced

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

next problem


From: Rich Drewes
Subject: next problem
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
-------------------------------------------------------------



reply via email to

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