| MATLAB Application Program Interface Reference | Help Desk |
mexGetNaN
Get the value of Not-a-Number
real*8 function mexGetNan()none
MATLAB's value of Not-a-Number. Call
mexGetNaN to return the value of NaN for MATLAB. 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
mexGetEps, mexGetInf