isnan
Check for Not a Number entries.
📝Syntax
tf = isnan(M)
📥Input Arguments
Parameter Description
M a variable
📤Output Arguments
Parameter Description
tf logical: result of 'isnan'.
📄Description

isnan returns a logical array which is true where elements of M are "Not a Number" values.

💡Examples
isnan(pi)
isnan(NaN)
isnan(int32(3))
X = sparse([1 2 NaN 3 0 NaN 0 4]);
R = isnan(X)
🔗See Also
isinf
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub