| 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 mxGetInf(void);
real*8 mxGetInf
Value of infinity on your system.
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:
Division by 0. For example, 5/0 returns infinity.
Operations resulting in overflow. For example, exp(10000) returns infinity because the result is too large to be represented on your machine.
See mxgetinf.c in the matlabroot/extern/examples/mx folder .
![]() | mxGetImagData (C and Fortran) | mxGetIr (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 |