help-octave
[Top][All Lists]
Advanced

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

RE: array cross sections


From: Sean Smith
Subject: RE: array cross sections
Date: Tue, 24 Aug 2004 12:53:18 -0700

All of you rock,
Thanks this is plenty enough of a start.  These tools are perfect.


-----Original Message-----
From: John W. Eaton [mailto:address@hidden
Sent: Tuesday, August 24, 2004 12:49 PM
To: Mike Miller
Cc: Geraint Paul Bevan; Sean Smith; Help-Octave List
Subject: Re: array cross sections


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]