Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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