MATLAB Function Reference | Search  Help Desk |
NaN | Examples See Also |
NaN
NaN
returns the IEEE arithmetic representation for Not-a-Number (NaN
). These result from operations which have undefined numerical results.
These operations produce NaN
:
NaN
, such as sqrt(NaN)
(+Inf)+(-Inf)
0
*Inf
0/0
and Inf/Inf
rem(x,y)
where y
is zero or x
is infinity
NaN
s always return false, except ~= (not equal). Consequently, the statement NaN
~= NaN
is true while the statement NaN
== NaN
is false.
Inf
Infinity