Skip to content

isfinite

Element-wise finite test.

TF = isfinite(A)

Returns a logical array marking elements that are finite (not NaN, not ±Inf).

isfinite([1 NaN Inf 3]) % [1 0 0 1]
  • isnan — Element-wise NaN test.
  • isinf — Element-wise infinity test.