Question

I am writing my own function get eigen values and eigen vectors. I have used QR algorithm to extract eigen values. How do I get eigen vectors using diagonal eigen value matrix D and original matrix A?

Was it helpful?

Solution

If you don't want to use eig, you can solve the matrix equation like so:

V=zeros(size(A));
for i=1:length(A)
    V(:,i)=null(A-eye(size(A))*D(i,i));
end

OTHER TIPS

You don't need the eigenvalues in order to get the eigenvectors. Just use:

[V,D] = eig(A);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top