home *** CD-ROM | disk | FTP | other *** search
- isnan:
-
- Syntax: isnan ( A )
-
- Description:
-
- isnan returns TRUE (1) if A is a NaN (Not A Number). If A is a
- vector or a matrix the test is performed element-by-element,
- and a matrix the same size as A is returned.
-
- NaNs can be create by the 0/0 operation on most computers.
-
- Example:
-
- > a = [1, 2, 3; 4, 5, nan(); 7, 8, 9]
- a =
- 1 2 3
- 4 5 nan0x80000000
- 7 8 9
- > isnan (a)
- 0 0 0
- 0 0 1
- 0 0 0
-
- See Also: inf, isinf, finite, nan
-