Question
MATLAB CODING QUESTION: NO DATA FILE NEEDED , just need general code for mat file with x being R 3584 x 225 and then use
MATLAB CODING QUESTION:
NO DATA FILE NEEDED , just need general code for mat file with x being R 3584 x 225 and then use the reshape command to turn it into face image of size 64 x 56 using command I = reshape(X(:,1),64,56);
please show complete matlab code; other answer on chegg does not have all code necessary
TEXT FROM PHOTO:
PCA of Face Dataset: For the image dataset provided to you, perform its PCA and display the following results: Image of the sample mean face Plot of singular values of the covariance matrix Images of the first three principal eigenvectors of the covariance matrix. Images of any three (arbitrary) faces, their reconstructions using d = 20 components, and the absolute difference of the error. The dataset is provided to you as a mat file with variable X R 3584225. Each column denotes a face image of size 64 56. You use the reshape command in matlab to convert a large vector into an image I = reshape(X(:, 1), 64, 56);.
PCA of Face Dataset: For the image dataset provided to you, perform its PCA and display the following results: - Image of the sample mean face - Plot of singular values of the covariance matrix - Images of the first three principal eigenvectors of the covariance matrix. - Images of any three (arbitrary) faces, their reconstructions using d=20 components, and the absolute difference of the error. The dataset is provided to you as a mat file with variable XR3584225. Each column denotes a face image of size 6456. You use the reshape command in matlab to convert a large vector into an image I=reshape(X(:,1),64,56)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started