Skip to content

Commit faa969e

Browse files
author
Merouane Atig
committed
Implement PCA
1 parent 1f10c45 commit faa969e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mlclass-ex7/pca.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@
2020
% number of examples).
2121
%
2222

23-
24-
25-
26-
27-
23+
Sigma = 1 / m * X' * X;
24+
[U, S, V] = svd(Sigma);
2825

2926
% =========================================================================
3027

0 commit comments

Comments
 (0)