| MATLAB Function Reference | ![]() |
Detect prime elements of an 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
| ispc | isprop (COM) | ![]() |