MATLAB Application Program Interface Reference | Help Desk |
mxGetNaN
Get the value of Not-a-Number
#include "matrix.h" double mxGetNaN(void);The value of Not-a-Number on your system. Call
mxGetNaN
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
mxGetEps
, mxGetInf