[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: indexing problems with 2.1.33 version

**From**: |
Laurent Jacques |

**Subject**: |
Re: indexing problems with 2.1.33 version |

**Date**: |
Thu, 25 Oct 2001 18:32:24 +0200 |

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