isinf - check for infinite entries
isinf(x) returns a boolean vector or matrix which contains true entries corresponding with infinite x entries and false entries corresponding with finite x entries.
isinf([1 0.01 -%inf %inf])