help-octave
[Top][All Lists]
Advanced

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

Re: comparison operators


From: Michael W. Martin
Subject: Re: comparison operators
Date: Wed, 20 Mar 2002 09:14:00 -0600

On Wednesday, March 20, 2002, at 08:26 AM, Fabian Alvarez wrote:

nevertheless, I think that the correct result should be the original
vector 'a' with its five different components.

any insight on this problem?



FYI, in my version, 2.1.35 on OSX, the results are what you expect (see below).


octave:5> a = [0.14714  0.46226  0.85053  0.59390  0.47820]
a =

  0.14714  0.46226  0.85053  0.59390  0.47820

octave:6> a ( a < 0.8 )
ans =

  0.14714  0.46226  0.59390  0.47820

octave:7> a ( a < 0.9 )
ans =

  0.14714  0.46226  0.85053  0.59390  0.47820

octave:8> a ( a > 0.1 )
ans =

  0.14714  0.46226  0.85053  0.59390  0.47820


----------------------------------------------------------------------
Michael W. Martin                   Phone: (281) 333-2177
Draper Laboratory                   FAX:   (281) 333-5276
2200 Space Park Dr.                 EMail: address@hidden
Houston, TX 77058                   WWW: http://www.jsc.draper.com/
USA                                 Mail Code: EG/Draper
----------------------------------------------------------------------



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