NaN
NaN is the IEEE arithmetic representation for Not-a-Number (NaN). NaNs result from operations which have undefined numerical results.
NaN:
NaN, such as sqrt(NaN)(+Inf)+(-Inf)0*Inf0/0 and Inf/Infrem(x,y) where y is zero or x is infinitymin([Inf NaN]) and max([Inf NaN])NaNs always return false, except ~= (not equal). Consequently, the statement NaN ~= NaN is true while the statement NaN == NaN is false.
dbstop,finite,Inf,isinf,isnan
(c) Copyright 1994 by The MathWorks, Inc.