Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

mxGetNaN (C and Fortran) - Value of NaN (Not-a-Number)

C Syntax

#include "matrix.h"
double mxGetNaN(void);

Fortran Syntax

real*8 mxGetNaN

Returns

Value of NaN (Not-a-Number) on your system

Description

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,

Your system specifies the value of Not-a-Number. You cannot modify it.

C Examples

See mxgetinf.c in the matlabroot/extern/examples/mx folder .

See Also

mxGetEps, mxGetInf

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS