| 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*Inf0/0 and Inf/Infrem(x,y) where y is zero or x is infinityRemarks
Logical operations involving NaNs always return false, except ~= (not equal). Consequently, the statement NaN ~= NaN is true while the statement NaN == NaN is false.
See Also
| munlock | nargchk | ![]() |