Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

mxGetInf (C and Fortran) - Value of infinity

C Syntax

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

Fortran Syntax

real*8 mxGetInf

Returns

Value of infinity on your system.

Description

Call mxGetInf to return the value of the MATLAB internal inf variable. inf is a permanent variable representing IEEE® arithmetic positive infinity. Your system specifies the value of inf; you cannot modify it.

Operations that return infinity include:

C Examples

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

See Also

mxGetEps, mxGetNaN

  


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