Assignment 4

docx

School

New York University *

*We aren’t endorsed by this school

Course

6143

Subject

Mathematics

Date

Jan 9, 2024

Type

docx

Pages

11

Uploaded by HighnessCobraMaster699

Report
Assignment - 4 1. Download the "teapots.mat" dataset containing 100 images of teapots of size 38*50. To view an image, say the second one in the data set type: imagesc(reshape(teapotImages(2,:),38,50)); colormap gray; Compute the data mean and top 3 eigenvectors of the data covvariance matrix and show them as images. Reconstruct the data using PCA with least squares error using only the mean and a linear combination of the top 3 eigenvectors. Show 10 different images before and after reconstruction. Discuss results. Solution: The top 3 eigen values : [4.21502173 3.01675861 2.09930086] The image for mean value:
For top most eigen value: For 2 nd top eigen value: For 3 rd top eigen value:
1.png 13.png 21.png
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
30.png 37.png 38.png
74.png: 85.png 83.png:
96.png:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help