필터 지우기
필터 지우기

How to find eigen vectors?

조회 수: 5 (최근 30일)
Sandy
Sandy 2015년 12월 4일
답변: Marc 2015년 12월 5일
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
John D'Errico
John D'Errico 2015년 12월 5일
편집: John D'Errico 2015년 12월 5일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Marc
Marc 2015년 12월 5일
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.

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by