octave-maintainers
[Top][All Lists]
Advanced

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

NaN in boolean expressions (was: Re: support for advanced gnuplot... )


From: John W. Eaton
Subject: NaN in boolean expressions (was: Re: support for advanced gnuplot... )
Date: Thu, 29 Jan 2009 12:52:42 -0500

On 29-Jan-2009, John W. Eaton wrote:

| On 29-Jan-2009, Ben Abbott wrote:
| 
| | btw, while looking at this I noticed an unexpected behavior
| | 
| | octave:8> true && NaN
| | ans =  1
| | 
| | For Matlab
| | 
| | >> true && NaN
| | ??? NaN's cannot be converted to logicals.
| | 
| | Shall I file a bug report?
| 
| I'll take a look at this problem.

I think the the following changeset fixes this problem:

  http://hg.savannah.gnu.org/hgweb/octave/rev/1dce30ab0e72

Thanks,

jwe


reply via email to

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