ISINF

 

 True for infinite elements.

  ISINF(X) returns 1's where the elements of X are +Inf or -Inf

  and 0's where they are not.  For example ISINF([pi NaN Inf -Inf])

  is [0 0 1 1].

 

 

  See also FINITE515M2I, ISNANES4LG.