[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
extracting value from a vector
From: |
Alain Baeckeroot |
Subject: |
extracting value from a vector |
Date: |
Tue, 21 Apr 2009 16:44:21 +0200 |
User-agent: |
KMail/1.9.9 |
Hi
A trivial question, but i don't find the answer in the doc.
i would like to assign value of a vector individually to some variables.
octave> v = [ 1.4 , 2.7, 3.1 ]
This fails : octave> [ a, b, c ] = v;
everything goes in 'a', and b is undefined.
Is it necessary to write a = v(1); b = v(2) ...
or did i missed something ?
Alain
- extracting value from a vector,
Alain Baeckeroot <=
- Re: extracting value from a vector, James Sherman Jr., 2009/04/21
- Re: extracting value from a vector, Rob Mahurin, 2009/04/21
- Re: extracting value from a vector, John W. Eaton, 2009/04/21
- Re: extracting value from a vector, Alain Baeckeroot, 2009/04/21
- Re: extracting value from a vector, Rob Mahurin, 2009/04/21
- Re: extracting value from a vector, John W. Eaton, 2009/04/21
- Re: extracting value from a vector, Rob Mahurin, 2009/04/21
- Re: extracting value from a vector, John W. Eaton, 2009/04/21
Re: extracting value from a vector, Przemek Klosowski, 2009/04/23