Prime factors
| Syntax: |
v = PFACTORS(n)
|
The function PFACTORS(n) returns a vector containing
the prime factors of the scalar value n.
This function can be useful in determining a good length for the input vector for the
Fast Fourier transform function FFT.
Example
If you enter X=PFACTORS(420)
then X will contain [2;2;3;5;7].