MATLAB - Linear Algebra
What is wrong with this MATLAB code snippet?
A = [1 2 3; 4 5 6];
[U, S, V] = svd(A);
disp(S(3,3));
A = [1 2 3; 4 5 6];
[U, S, V] = svd(A);
disp(S(3,3));
A, S is 2x3 with singular values on the diagonal.S has only 2 rows, accessing S(3,3) is invalid and causes an indexing error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions