How to find eigen vectors?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am using:
A= [-5, 2; 2, -2];
[EigVec, EigVal] = eig(A)
If I use Wolfram, I obtain Eigen Vectors = [1,2;1, -0.5]. Similarly, how can I get MatLab to scale it to 1?
1 comentario
John D'Errico
el 5 de Dic. de 2015
Editada: John D'Errico
el 5 de Dic. de 2015
I answered this identical question before. You cannot get MATLAB to magically scale them as you desire. However, you can DIVIDE EACH VECTOR BY THE FIRST ELEMENT OF THAT VECTOR. Just do the scaling yourself. Take care that the first element is not zero.
Respuestas (1)
Marc
el 5 de Dic. de 2015
I love questions like this... As I am always confused?
Maybe it is the way you are setting it up in Wolfram but if you have the symbolic toolbox in Matlab you can use this....
>> A= sym([-5 2; 2 -2])
A =
[ -5, 2] [ 2, -2]
>> [EigVec, EigVal] = eig(A)
EigVec =
[ -2, 1/2] [ 1, 1]
EigVal =
[ -6, 0] [ 0, -1]
So you get something close to what you wanted?
Try something like this in Maple....
A := Matrix([[-5, 2], [2, -2]])
Eigenvectors(A)
Vector(2, {(1) = -1, (2) = -6}), Matrix(2, 2, {(1, 1) = 1/2, (1, 2) = -2, (2, 1) = 1, (2, 2) = 1})
So Matlab's Symbolic toolbox and Maple are reversing the signs which I don't think is a big deal and of course they put things in different spots... Again not a big deal but it just makes you wonder? Or not.
0 comentarios
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!