28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

isnan<br />

2isnan<br />

Purpose Detect NaN elements of an array<br />

Syntax TF = isnan(A)<br />

Description TF = isnan(A) returns an array the same size as A containing logical true (1)<br />

where the elements of A are NaNs and logical false (0) where they are not. For a<br />

complex number z, isnan(z) returns 1 if either the real or imaginary part of z<br />

is NaN, and 0 if both the real and imaginary parts are finite or Inf.<br />

2-1246<br />

For any real A, exactly one of the three quantities isfinite(A), isinf(A), and<br />

isnan(A) is equal to one.<br />

Examples a = [-2 -1 0 1 2]<br />

isnan(1./a)<br />

Warning: Divide by zero.<br />

ans =<br />

0 0 0 0 0<br />

isnan(0./a)<br />

Warning: Divide by zero.<br />

ans =<br />

0 0 1 0 0<br />

See Also isfinite, isinf, is*

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!