Principal components analysis (PCA)

Principal components analysis (PCA)

You are now following this Submission

Do principal components analysis (PCA) on real-valued data.

Two methods are available: 'eig' and 'svd' which solve the problem by eigenvalue decomposition and singula value decomposition, respectively. Please note that 'svd' is running in 'economy' mode.

Cite As

Siqing Wu (2026). Principal components analysis (PCA) (https://www.mathworks.com/matlabcentral/fileexchange/20898-principal-components-analysis-pca), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

One line of testing code was not deleted in the first version.