factor - Prime factors

Syntax

f = factor(n)

Description

f = factor(n) returns a row vector containing the prime factors of n.

Examples

f = factor(123)
f =
     3    41

See Also

isprime, primes

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS