Return a matrix or N-dimensional array whose elements are all NaN (Not a Number). The value NaN is the result of an operation like or any operation with a NaN.
Note that NaN always compares not equal to NaN. This behavior is specified by the IEEE standard for floating point arithmetic. To find NaN values, you must use the
isnan
function.The arguments are handled the same as the arguments for
eye
. The optional argument class may be either ‘"single"’ or ‘"double"’. The default is ‘"double"’.