help-octave
[Top][All Lists]
Advanced

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

Re: array cross sections


From: John W. Eaton
Subject: Re: array cross sections
Date: Tue, 24 Aug 2004 15:49:02 -0400

On 24-Aug-2004, Mike Miller <address@hidden> wrote:

| On Tue, 24 Aug 2004, John W. Eaton wrote:
| 
| > | a(find(a<0.5))
| >
| > I think this should be better:
| >
| >  a(a<0.5)
| >
| > since it avoids calling find, but it could also end up being slower for 
| > very large matrices since it requires forming an mask array that is the 
| > same size as the original matrix.
| >
| > | ...and does that require do_fortran_indexing = 1?
| >
| > No.
| 
| 
| Clarification:  I believe a(find(a<0.5)) requires that do_fortran_indexing 
| = 1, while a(a<0.5) works for any value of do_fortran_indexing.  That is, 
| unless something was changed in a very recent version.

In 2.1.57:

  octave:1> help do_fortran_indexing

  help: sorry, `do_fortran_indexing' is not documented


There is no longer a do_fortran_indexing built-in variable.

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



reply via email to

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