function isinf

Returns -1 if value represents negative infinity, 1 if value represents positive infinity, and 0 otherwise. If the value is complex and 'inf + -inf i' or '-inf + inf i' then -0.5 will be returned.

Syntax
result = isinf(a)

Arguments
a:   The value to check


See also
function isnan