just do [V,D] = eig(A)
[V,D] = eig(A)
D is the diagonal matrix (eighenvalue) , V is the eigenvectors matrix such that V*V^-1=1
2.1m questions
2.1m answers
60 comments
57.0k users