MATLAB Application Program Interface | Search  Help Desk |
mexIsInf | See Also |
Determine whether or not a value is infinite
integer*4 function mexIsInf(value) real*8 valuevalue
true
if value is infinite; otherwise, returns false
.
Call mexIsInf
to determine whether or not value
is equal to infinity. MATLAB stores the value of infinity in a permanent variable named inf
, which represents IEEE arithmetic positive infinity. The value of inf
is built in to the system; you cannot modify it.
Operations that return infinity include
0
. For example, 5/0
returns infinity.
exp(10000)
returns infinity because the result is too large to be represented on your machine.
value
equals NaN
(Not-a-Number), then mexIsInf
returns false
. In other words, NaN
is not equal to infinity.
mexIsFinite
, mexIsNaN