Right and Left Eigenvectors
Show older comments
Dear Users,
What I read about right and left eigenvectors from some literature is that right ones should be column and left ones should be row matrices. However, when I use the standard commands ([V,D,W]=eig(A)) to see right(V), diagonal(D) and left(W) vectors of e.g 3x3 square matrix, I get 3x3 V and W matrices. Can you tell me where I do a mistake? Thanks!
3 Comments
Steven Lord
on 27 Jun 2018
What relationship needs to hold between the left eigenvectors, the eigenvalues, and the original matrix? From the documentation: "[V,D,W] = eig(A) also returns full matrix W whose columns are the corresponding left eigenvectors, so that W'*A = D*W'." The columns of W are the left eigenvectors, not the rows.
>> W'*A-diag(Lambda)*W'
ans =
1.0e-15 *
0 0 -0.2220
0 0 0
0 0 0
Let's check with just one column of W, to more closely match your code.
>> w1c = W(:, 1);
>> w1c'*A - e1*w1c'
ans =
1.0e-15 *
0 0 0.2220
Those each look pretty good to me.
Rengin
on 27 Jun 2018
Answers (2)
Juan Fernandez
on 25 Jun 2018
2 votes
You did not make a mistake. Each column of V is a right eigenvector of A. Each row of W is a left eigenvector of A.
Christine Tobler
on 25 Jun 2018
0 votes
The matrices V and W contain all eigenvectors of A. For example
V(:, 1) and D(1, 1) are the right eigenvector and eigenvalue of A, A*V(:, 1) == V(:, 1)*D(1, 1)
W(:, 1) and D(1, 1) are the left eigenvector and eigenvalue of A, W(:, 1)'*A == D(1, 1)*W(:, 1)'
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!