Exercise: PCA in 2D
From Ufldl
(→Step 0: Load data) |
(→Step 1a: Implement PCA) |
||
Line 14: | Line 14: | ||
Plot the resulting basis on top of the given data points. You may find it useful to use MATLAB's <tt>hold on</tt> and <tt>hold off</tt> functions. | Plot the resulting basis on top of the given data points. You may find it useful to use MATLAB's <tt>hold on</tt> and <tt>hold off</tt> functions. | ||
+ | |||
+ | [[File:pca_2d_basis.png | 360px]] | ||
==== Step 1b: Check xRot ==== | ==== Step 1b: Check xRot ==== |