Prime factors
Syntax
f = factor(n)
Description
f = factor(n) returns a row vector containing the prime factors of n.
n
Examples
f = factor(123) f = 3 41
See Also
isprime, primes
isprime
primes
© 1994-2005 The MathWorks, Inc.