I need to write a program that first gives the following details:
load durer, image(X); colormap(hot); axis image, axis off
load detail, image(X); colormap(hot); axis image, axis off
The matrix X is a 359x371 matrix.
The command [U,S,V]=svd(X,0) gives the thin SVD of X.
For any value 1<=k<=359, one can obtain the truncated SVD X_k from the leading k columns of U and V, and the largest k singular values in S.
Write a Matlab program that outputs the smallest value of k for which X_k  X_2 <= 700 and displays the images corresponding to X and X_k.
Use a single Matlab expression to determine k.
Use a single Matlab expression to compute the matrix X_k.
I have absolutely no idea where to even start. Unfortunately, my grandfather died last week, so I've had no time to even look at this, and I have to get it done in 2 days! I've loaded the first two items, and used the command to generate the thin SVD of X. I know that X_k  X_2 is equal to the k+1th singular value, but I'm not sure how to get that. Can anyone help me out a little? Thank you SO much.
