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.

isprime<br />

2isprime<br />

Purpose Detect prime elements of an array<br />

Syntax TF = isprime(A)<br />

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

(1) for the elements of A which are prime, and logical false (0) otherwise. A must<br />

contain only positive integers.<br />

Examples c = [2 3 0 6 10]<br />

See Also is*<br />

2-1262<br />

c =<br />

2 3 0 6 10<br />

isprime(c)<br />

ans =<br />

1 1 0 0 0

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

Saved successfully!

Ooh no, something went wrong!