Nipals algorithm for Principle Component Analysis

This function is written largely based on nipals function from R chemometrics package.

You are now following this Submission

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 (2026). Nipals algorithm for Principle Component Analysis (https://www.mathworks.com/matlabcentral/fileexchange/42142-nipals-algorithm-for-principle-component-analysis), 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.2.0.0

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

1.0.0.0