help-octave
[Top][All Lists]
Advanced

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

Re: assignment problem


From: Mirek Kwasniak
Subject: Re: assignment problem
Date: Thu, 2 May 2002 13:01:44 +0200
User-agent: Mutt/1.3.28i

On Thu, May 02, 2002 at 10:08:37AM +0200, Alexander Grahn wrote:
[...]
> I wonder why the following assignment causes an error (version 2.1.32):
> 
> [a;b] = c;
> 
> I expected vector a to be filled with 1, 2 and 3 and vector b with 4, 5 and 6.

This kind of assigment (matrix splitting) isn't allowed in octave and in matlab
(at least in 4.0).

`[ a, b ... ] =' assigment is for functions with multiple output parameters.

Mirek



-------------------------------------------------------------
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]