MATLAB Function Reference Previous page   Next Page
isprime

Detect prime elements of array

Syntax

Description

TF = isprime(A) returns an array the same size as A containing logical true (1) for the elements of A which are prime, and logical false (0) otherwise. A must contain only positive integers.

Examples

See Also

is*


Previous page  ispref isprop Next page

© 1994-2005 The MathWorks, Inc.