help-octave
[Top][All Lists]
Advanced

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

Testing NaN existence in array


From: David Kremer
Subject: Testing NaN existence in array
Date: Wed, 27 May 2009 09:53:26 +0200

Hello, 

I would have a simple way to detect if an array contains NaN. I tried
isnan(a),  but that doesn't work if only one elem isnan.

The purpose is to test it in a boolean expression, like this :

if has_NaN
     break ;
end ;

But that works only with scalar value.

Please, do you know a mean to do this ?

Thank you very much.

David Kremer

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

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