isfinite
Check for finite entries.
📝 Syntax
tf = isfinite(M)
📥 Input argument
M - a variable
📤 Output argument
tf - logical: result of 'isfinite'.
📄 Description
isfinite returns a logical array which is true where elements of M are finite values.
💡 Example
isfinite(pi)
isfinite(Inf)
isfinite(-Inf)
isfinite(int32(3))
X = sparse([1 2 NaN 3 0 Inf 0 4]);
R = isfinite(X)🔗 See also
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?