MATLAB - Linear Algebra
You want to approximate a matrix
A by keeping only the largest singular value and corresponding vectors using MATLAB. Which code snippet correctly performs this low-rank approximation?