| MATLAB Application Program Interface | Search  Help Desk |
| mxGetNaN | Examples See Also |
Get the value of NaN (Not-a-Number)
C Syntax
#include "matrix.h" double mxGetNaN(void);
Returns
The value ofNaN (Not-a-Number) on your system.
Description
CallmxGetNaN to return the value of NaN for your system. NaN is the IEEE arithmetic representation for Not-a-Number. Certain mathematical operations return NaN as a result, for example:
0.0/0.0
Inf-Inf
Example
Seemxgetinf.c in the mx subdirectory of the examples directory.
See Also
mxGetEps, mxGetInf