[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indexing problems with 2.1.33 version
From: |
John W. Eaton |
Subject: |
Re: indexing problems with 2.1.33 version |
Date: |
Thu, 8 Nov 2001 23:02:02 -0600 |
On 25-Oct-2001, Laurent Jacques <address@hidden> wrote:
| On Thursday 25 October 2001 18:34, iago mosqueira wrote:
| > Maybe he is expecting the [0 1] to act as a logical array. It needs to be
| > created as such.
|
| Yes, you're right.
| I obtain finally the good result with
| ===
| octave-2.1.33:2> a=[1,2;3,4]
| a =
|
| 1 2
| 3 4
|
| octave-2.1.33:5>a((1:2)<2,:)
| ans =
|
| 1 2
| ==
|
| based on the fact that:
| ===
| octave-2.1.33.5> (1:2)<2
| ans =
|
| 1 0
| ===
|
| It seems to be related to a kind of a missing "logical" flag ?
Try
logical ([1, 0])
instead.
jwe
-------------------------------------------------------------
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
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: indexing problems with 2.1.33 version,
John W. Eaton <=