isinfinity
Check for infinite elements in an array.
(u)=isinfinity(a)
Inputs
a Any numeric array.
Outputs
u An array of the same size as a . Each element of this array is 1 if the corresponding element of a is infinite, and 0 otherwise.