4.33333

4.3 | 4 ratings Rate this file 144 Downloads (last 30 days) File Size: 1.72 KB File ID: #24322
image thumbnail

Principal Component Analysis (PCA) in MATLAB

by Siamak Faridani

 

01 Jun 2009

This is a demonstration of how one can use PCA to classify a 2D data set.

| Watch this File

File Information
Description

This is a demonstration of how one can use PCA to classify a 2D data set. This is the simplest form of PCA but you can easily extend it to higher dimensions and you can do image classification with PCA

PCA consists of a number of steps:
 - Loading the data
 - Subtracting the mean of the data from the original dataset
 - Finding the covariance matrix of the dataset
 - Finding the eigenvector(s) associated with the greatest eigenvalue(s)
 - Projecting the original dataset on the eigenvector(s)

Note: MATLAB has a built-in PCA functions. This file shows how a PCA works

MATLAB release MATLAB 7.5 (R2007b)
Other requirements I wrote it on Matlab 7.5.0
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
08 Feb 2011 Tobias malach

Thanks! This helped me to understand what PCA actually is about

13 Jul 2011 zhu zhu

thanks!

06 Sep 2011 Adams Black  
06 Sep 2011 Adams Black

Good! but can i use it for image classfication pls?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
pca Siamak Faridani 02 Jun 2009 09:40:46
principal component analysis Siamak Faridani 02 Jun 2009 09:40:46
classification Siamak Faridani 02 Jun 2009 09:40:46
segmentation Siamak Faridani 02 Jun 2009 09:40:46
pca AristoTELE University 02 Jan 2010 08:18:59
classification M'hamed 24 Oct 2011 06:23:15

Contact us at files@mathworks.com