|MATLAB Function Reference|
returns the IEEE arithmetic representation for Not-a-Number (
NaN). These result from operations which have undefined numerical results.
These operations produce
NaN, such as
yis zero or
NaNs are not equal to each other, logical operations involving
NaNs always return false, except ~= (not equal). Consequently,
NaNs in a vector are treated as different unique elements.
isnan function to detect
NaNs in an array.