help-octave
[Top][All Lists]
Advanced

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

assignment problem


From: Alexander Grahn
Subject: assignment problem
Date: Thu, 2 May 2002 10:08:37 +0200
User-agent: Mutt/1.2.5i

Hello!

Given three column vectors a, b and c, let vector a and b be defined as

a = b = zeros(3,1);

and vector c as

c = [1:6]';

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.

Thanks for your comments.

Alexander Grahn

-- 
Alexander Grahn
Forschungszentrum Rossendorf e. V.
Institut für Sicherheitsforschung
PF 51 01 19
D-01314 Dresden        
Allemagne

mailto:address@hidden
Tel.: +49 (0)3 51 / 2 60 23 31
Fax.: +49 (0)3 51 / 2 60 23 83



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