help-octave
[Top][All Lists]
Advanced

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

Re: reading data stored in a file: to Jordi


From: Jordi Gutiérrez Hermoso
Subject: Re: reading data stored in a file: to Jordi
Date: Fri, 9 Jul 2010 16:11:52 -0500

On 9 July 2010 14:21, Nibalart <address@hidden> wrote:
> your first line works if I erase the word file.  From the display I
> understand that everything is stored in a matrix. When I run the second line
> the answer is:
>
>>>> [v1 v2 v3 v4 v5] = [v(:,1) v(:,2) v(:,3) v(:,4) v(:,5)]
>
> error: invalid number of output arguments for matrix list

Sorry, as Jaroslav pointed out, that was a mistake. I've been coding
in Python recently, and got my wires crossed. You'll have to do
instead v1 = v(:,1); v2 = v(:,2); v3 = v(:,3) and so on.

You can do help some_function (e.g. help load) to see the help for
what each thing will do.

If you need help indexing and with arrays in Octave, the manual covers
indexing and slicing in Octave:

     
http://www.gnu.org/software/octave/doc/interpreter/Index-Expressions.html#Index-Expressions



reply via email to

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