eig is not giving a matrix for left eigenvectors
Show older comments
I am trying to find the left and right eigenvectors of a 16 by 16 matrix with [V,D,W]=eig( mat ); V, and W are supposed to be matrices where the column vectors are the right and left eigenvectors, and while V meets this, W is a 1 by 16 row vector, W =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I haven't included the matrix itself because of its size but I can. Some assistance would be much appreciated.
1 Comment
John D'Errico
on 8 Jul 2016
Why not attach the matrix as a mat file? 16 by 16 is NOT large. In fact, it is trivially tiny.
Accepted Answer
More Answers (1)
John D'Errico
on 8 Jul 2016
It works well enough for me, doing exactly as I would expect on a random matrix.
clear
[V,D,W] = eig(rand(16));
whos
Name Size Bytes Class Attributes
D 16x16 4096 double complex
V 16x16 4096 double complex
W 16x16 4096 double complex
So, if you are getting something completely different, then you need to show clearly what you did. You should attach the matrix as a .mat file to a comment.
1 Comment
Samantha Zimmerman
on 8 Jul 2016
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!