MATLAB Function Reference
  Go to function:
    Search    Help Desk 
NaN    Examples   See Also

Not-a-Number

Syntax

Description

NaN returns the IEEE arithmetic representation for Not-a-Number (NaN). These result from operations which have undefined numerical results.

Examples

These operations produce NaN:

Remarks

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

Inf         Infinity



[ Previous | Help Desk | Next ]