%% Exam 1 Take Home, Question 2 % First we load the data (be sure to download it from the class website): load Exam1Q2; % The matrix X should be loaded into memory, 5 x 100. %% Part (a): Double center the matrix X to create the matrix Xm: %% Part (b): Compute the covariance matrix C using matrix multiplication: %% Part (c): Find the value of the largest eigenvalue of C %% Part (d): Find the value of the largest singular value of Xm %% Part (e): From the SVD of Xm, compute the coordinates of the projection of the data to U(:,1). %% Part (f): Find the variance of the data found in part (e).