Contents Previous Next Subchapters

Determines Which Elements Are Not A Number
Syntax isnan(x)
See Also isinf , isfinite , autoexec

Returns logical matrix with the same dimension as x containing the element-by-element result true, if the corresponding element of x is plus or minus NAN and false otherwise.

If you enter
     x = [ 0 , INF, -INF, NAN, -NAN ]
O-Matrix will respond
     [ F , F , F , T , T ]

If x is a logical, character or integer matrix, all of the elements of the return matrix are false.