2.75

2.8 | 8 ratings Rate this file 12 Downloads (last 30 days) File Size: 2.32 KB File ID: #5035

NIPALS algorithm

by MAHE Geoffrey

 

28 May 2004 (Updated 03 Jun 2004)

Principal components analysis.

| Watch this File

File Information
Description

This m-file give you the Nipals algorithm to realize a Principal Components Analysis for statistical study. I realize this program specifically with an aim of analysis spectroscopic data. Use 'help' for description

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
07 Jun 2004 Castor Power

Very good program !!! thank you very much, i would have spend time to make my own algo if i didn't find it !!!!

09 Dec 2004 Graciela Martínez

This function presented the follow error:

Undefined function or variable 'pc'.

Error in ==> nipals2.m
On line 89 ==> pc = [ pc ( 100 * ( varl - var ) / varo ) ];

07 Feb 2006 Denis Bichsel

Just nothong a lot of error, no indication
on the variable, no comment

20 Feb 2006 Matthias Wetzel

This function presented the follow error: Undefined function or variable 'pc'. Error in ==> nipals2.m On line 89 ==> pc = [ pc ( 100 * ( varl - var ) / varo ) ];

09 Mar 2006 friend good

NIPALS - Non-linear Iterative Partial Least Squares. see S. Wold and S. Martens
PCA- Principal components analysis.

05 Apr 2006 goops k

Good job

21 Jun 2007 Pedro Vagos

You need to initialize the variable "pc" in the beginning of the code ( pc=[]; ). Also, a ";" is missing in line 56.
Otherwise it works fine.

13 May 2010 Stefan Krämer

You need to change

%Lprinc=ones(nbp,length(E));
Lprinc=ones(nbp,size(E,2));

in order for the code to work for more observations than variables on newer versions of MATLAB.

13 May 2011 Fahd Bouzaraa

This is just a waste of time, there are plenty of errors..

Please login to add a comment or rating.
Updates
03 Jun 2004

faute d'orthographe

Tag Activity for this File
Tag Applied By Date/Time
statistics MAHE Geoffrey 22 Oct 2008 07:21:10
probability MAHE Geoffrey 22 Oct 2008 07:21:10
pca MAHE Geoffrey 22 Oct 2008 07:21:10
nipals MAHE Geoffrey 22 Oct 2008 07:21:10
analysis MAHE Geoffrey 22 Oct 2008 07:21:10
components MAHE Geoffrey 22 Oct 2008 07:21:10
principal MAHE Geoffrey 22 Oct 2008 07:21:10
analysis German Alfonso 12 Jan 2011 17:11:58

Contact us at files@mathworks.com