Be the first to rate this file! 496 downloads (last 30 days) File Size: 1.72 KB File ID: #24322

Principal Component Analysis (PCA) in MATLAB

by Siamak Faridani

 

01 Jun 2009

Code covered by BSD License  

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

Download Now | 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
Zip File Content  
Other Files license.txt,
pca.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com