factor
Prime factors
📝Syntax
f = factor(n)
📥Input Arguments
Parameter Description
n real, nonnegative integer scalar
📤Output Arguments
Parameter Description
p vector with Prime factors.
📄Description

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

Vector f is of the same data type as n.

💡Examples
f = factor(204)
🔗See Also
primes
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub