Eigenvalues and Eigenvectors Question

조회 수: 3 (최근 30일)
LukeO
LukeO 2016년 11월 18일
댓글: Greg Bishop 2017년 2월 15일
I've solved a matrix in MATLAB using the following in the command window:
>> A = [1 2 -5; 3 7 3; -4 6 1]
A =
1 2 -5
3 7 3
-4 6 1
>> eig(A)
ans =
-5.4490
5.6560
8.7930
>> [v,d] = eig(A)
v =
0.6404 -0.7188 -0.2483
-0.3223 0.0583 0.7017
0.6971 0.6927 0.6677
d =
-5.4490 0 0
0 5.6560 0
0 0 8.7930
I understand the function eig(A) is returning the eigenvalues of the matrix but I don't fully understand the function [v,d]=eig(A). Could someone please explain it in a way that is easy to understand?
Also, I understand there are many different ways of reporting the eigenvector but which eigenvector does MATLAB report?
Finally, is there a way in MATLAB that i can confirm the above answers for the eigenvalues and eigenvectors just to prove its correct?
Thanks.
  댓글 수: 1
Greg Bishop
Greg Bishop 2017년 2월 15일
https://www.mathworks.com/help/matlab/ref/eig.html
V are the eigenvectors, D are the eigenvalues, the algorithm used to compute them is cholesky which is a triangular decomposition. By definition, you can check this by performing A*V = V*D, within the machine limits of float precision.

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

답변 (2개)

Star Strider
Star Strider 2016년 11월 18일
According to the documentation, ‘v’ in your example are the right eigenvectors. See the documentation for eig for a full explanation.

Roger Stafford
Roger Stafford 2016년 11월 18일
The ‘eig’ function “[v,d] = eig)A)” is a solution to the equation
A*v = v*d
where ‘d’ is a diagonal matrix and if possible the columns of ‘v’ are of unit magnitude. These diagonal elements of ‘d’ are known as the eigenvalues of A and the columns of ‘v’ are the eigenvectors. The above equation is a way of testing that ‘eig’ has solved the problem correctly (to within round-off error accuracy, of course.) For further information, read:
https://en.wikipedia.org/wiki/Eigenvalues_and_eigenvectors
The subject of eigenvalues and eigenvectors is an important subject in linear algebra.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by