NaN
Creates an Not-a-Number
📝Syntax
NaN
nan
NaN(n)
NaN(n, m)
📥Input Arguments
Parameter Description
n a variable: n-by-n matrix
m a variable: n-by-m matrix
📄Description

NaN returns the IEEE symbol NaN (Not a Number).

NaN is the result of operations which do not produce a well defined numerical result.

Beware, you must never compare NaN with NaN, in this case, please use isnan.

💡Examples
NaN
3 + NaN
NaN != NaN
isnan(NaN)
🔗See Also
isnan
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub