%% Quiz 4 Template % Load the Data: Be sure TestData1.mat is in the current directory. load TestData1 %You should load in a matrix X that is 93 x 2. %% Mean subtract to get a matrix Xhat: %% Compute the covariance matrix C: %% Find the eigenvalues and eigenvectors of C: %% Write the projection matrix P that projects data to the first eigenvector of C. Verify your results by performing the projection and plotting the results: %% Find the best fitting line through the original data in X (the first column is the domain, the second column is the range). Use linear algebra to find the equation, then see if the mean of the data goes through the line. %% Done: Use the "Publish to HTML" to get a webpage to print, then turn that in together with the solution to the first question.