MATLAB: To get dominant eigen vector

eigen valueseigen vector

In Matlab/Octave, [A B] = eig(C) returns a matrix of eigen vectors and a diagonal matrix of eigen values of C. Even though the values may be theoretically real, these are given to be complex with very low imaginary values. Due to this, the eigen values are not put in a decreasing order. Hence to find the eigen vectors corresponding to dominant eigen values, some calculations are required, which take up processing time in a big loop. Is there a remedy to this to find dominant eigen vectors?

Best Answer

[U,S,V]=svd(C) gives you the singular value decomposition of C. i.e., C=U*S*V'
where the singular values S are in decreasing order. Therefore, the most dominant eigenvector is U(:,1), for example.
Related Question