Determine whether input is NaN (Not-a-Number)
Call mxIsNaN to determine whether value is NaN. NaN is the IEEE® arithmetic representation for Not-a-Number. A NaN is obtained as a result of mathematically undefined operations such as
The system understands a family of bit patterns as representing NaN. In other words, NaN is not a single value; rather, it is a family of numbers that MATLAB® software (and other IEEE-compliant applications) uses to represent an error condition or missing data.
See the following examples in matlabroot/extern/examples/mx.
See the following examples in matlabroot/extern/examples/refbook.