MATLAB Function Reference |
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
ispref | isprop |
© 1994-2005 The MathWorks, Inc.