Consider the matrix: 3 * √4 =
Use the svd() function in MATLAB to compute A, the rank-1 approximation of A. Clearly state what A1 is, rounded to 4 decimal places. Also, compute the root mean square error (RMSE) between A and A1.
Use the svd() function in MATLAB to compute A2, the rank-2 approximation of A. Clearly state what A2 is, rounded to 4 decimal places. Also, compute the root mean square error (RMSE) between A and A2. Which approximation is better: A1 or A2? Explain.
For the matrix A, the singular value decomposition is A = USV, where U and V are orthogonal matrices and S is a diagonal matrix. Use MATLAB to compute the dot product dot(U, 42). Also, use MATLAB to compute the cross product cross(0, U) and dot product dot(43). Clearly state the values for each of these computations. Do these values make sense? Explain.
Using the matrix U = [U1 U2 U3 U4], determine whether or not the columns of U span R. Explain your approach.
Use the MATLAB imshow() function to load and display the image A stored in the provided MATLAB image mat file (available in the Supporting Materials area). For the loaded image, derive the value of k that will result in a compression ratio of CR ~ 2. For this value of k, construct the rank-k approximation of the image.
Display the image and compute the root mean square error (RMSE) between the approximation and the original image. Make sure to include a copy of the approximate image in your report.
Repeat steps 5 and 6 for CR = 10, CR = 25, and CR = 75. Explain what trends you observe in the image approximation as CR increases and provide your recommendation for the best CR based on your observations. Make sure to include copies of the approximate images in your report.