eig is not giving a matrix for left eigenvectors
Mostrar comentarios más antiguos
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 comentario
John D'Errico
el 8 de Jul. de 2016
Why not attach the matrix as a mat file? 16 by 16 is NOT large. In fact, it is trivially tiny.
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 8 de Jul. de 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 comentario
Samantha Zimmerman
el 8 de Jul. de 2016
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!