MATLAB Function Reference | ![]() ![]() |
Syntax
NaN
Description
NaN
returns the IEEE arithmetic representation for Not-a-Number (NaN
). These result from operations which have undefined numerical results.
Examples
NaN
, such as sqrt(NaN)
(+Inf)+(-Inf)
0*Inf
0/0
and Inf/Inf
rem(x,y)
where y
is zero or x
is infinityRemarks
Logical operations involving NaN
s always return false, except ~= (not equal). Consequently, the statement NaN
~= NaN
is true while the statement NaN
== NaN
is false.
See Also
![]() | munlock | nargchk | ![]() |