PCA
by
Devinder
12 Jun 2013
this implements the PCA algorithm. User can choose/input the no.of features in the reduced Dataset.

featureNormalize(X)

function [X_norm, mu, sigma] = featureNormalize(X)
%FeatureNormalize.m Normalizes the features in X
mu = mean(X);
X_norm = bsxfun(@minus, X, mu);
sigma = std(X_norm);
X_norm = bsxfun(@rdivide, X_norm, sigma);
end


Contact us