Why is pca() faster than svd()?

The documentation for the pca() function says that 'svd' is the default algorithm:
"By default, pca centers the data and uses the singular value decomposition (SVD) algorithm."
If this is the case, why does svd(X) take much longer than pca(X)?

 Accepted Answer

John D'Errico
John D'Errico on 22 May 2017
Read the help for SVD, particularly the economy SVD.

More Answers (0)

Categories

Tags

Asked:

on 22 May 2017

Answered:

on 22 May 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!