| MATLAB Application Program Interface Reference | Help Desk |
mexGetInf
Get the value of infinity
real*8 function mexGetInf()none
The value of infinity on your system. Call
mexGetInf to return the value of the MATLAB internal inf variable. inf is a permanent variable representing IEEE arithmetic positive infinity. The value of inf is built in to the system; you cannot modify it.
Operations that return infinity include:
exp(100000) returns infinity because the result is too large to be represented on your machine.
mexGetEps, mexGetNaN