Group: alt.friends · Group Profile · Search for Evected in alt.friends
Author: Peter Hucker
Date: Jun 27, 2008 11:07
Hello, I am trying to compute singular value decomposition of a matrix in two ways in matlab but I am not getting the same result. I just wanted to see if I am doing everything correctly. So, here are matlab commands; A = [2 -1 -1; -1 2 -1; -1 -1 2]; [S,U,V] = svd(A); [evect_s, evals_s] = eig(A * A'); [evect_v, evals_v] = eig(A' * A); S S = -0.5774 0.5774 0.5774
|