help-octave
[Top][All Lists]
Advanced

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

Re: indexing problems with 2.1.33 version


From: iago mosqueira
Subject: Re: indexing problems with 2.1.33 version
Date: Thu, 25 Oct 2001 17:34:44 +0100

Maybe he is expecting the [0 1] to act as a logical array. It needs to be
created as such.

iago


----- Original Message -----
From: "Laurent Jacques" <address@hidden>
To: <address@hidden>
Sent: 25 October 2001 17:32
Subject: Re: indexing problems with 2.1.33 version


> On Thursday 25 October 2001 17:07, pablo nicholson wrote:
> > Hi, I am trying to reproduce the example under the title "index
> > expressions" of the manual:
> >
> > a=[1,2;3,4]
> > a([1,0],:)
>
> I don't understand your problem.
> It doesn't work in matlab too !
> So you have to write
> a([2,1],:)
> instead.
> You are not in C with the zero indexing.
>
> > but instead of getting the first row as expected, it gives the error
> > message
> > error: invalid row index=0
>
> As expected !?
>
> >
> > so it seems that the program takes zeros as index numbers and no as a
> > selection criteria...
>
> Can you explained your idea ?
>
> L. Jacques
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------



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