function isnan

Returns a non-zero value if value is 'not-a-number' (NaN), and 0 otherwise.

Syntax
result = isnan(a)

Arguments
a:   The value to check


See also
function isinf