| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
#include "matrix.h" double mxGetNaN(void);
real*8 mxGetNaN
Value of NaN (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
Your system specifies the value of Not-a-Number. You cannot modify it.
See mxgetinf.c in the matlabroot/extern/examples/mx folder .
![]() | mxGetN (C and Fortran) | mxGetNumberOfDimensions (C and Fortran) | ![]() |

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 |