Nipals algorithm for Principle Component Analysis

This function is written largely based on nipals function from R chemometrics package.
864 Downloads
Updated 11 Jun 2013

View License

It was frustrating that Matlab did not has a robust nipals function so I wrote one for my project and share here.

Cite As

Qiaonan Duan (2025). Nipals algorithm for Principle Component Analysis (https://www.mathworks.com/matlabcentral/fileexchange/42142-nipals-algorithm-for-principle-component-analysis), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Line 48 (6/10/2013): prec = thnew-th; --> prec = (thnew-th)'*(thnew-th);

1.0.0.0