What do the components of eigenvector represent?
古いコメントを表示
When I use [V,D] = eig(A), V has 2 X 2 matrix. What do the components of V represent? V(1,1) represents the angle between x-axis and principal direction, and V(2,1) represents the angle between y-axis and principal direction?? I would appreciate any help. Thanks,
Jay
回答 (1 件)
Youssef Khmou
2014 年 5 月 6 日
編集済み: Youssef Khmou
2014 年 5 月 6 日
N dimensional matrix is associated with N dimensional canonical base, in this case N=2, you have a plane (x,y), after eigendecomposition you have the diagonal matrix D which contains the spectra of the matrix A and the columns of V are the associated eigenvectors V(:,1)= V1 ex +V2 ey such as V(1,1) and V(2,1) are the x and y components of the first eigenvector .
V(1,1)= ||V1|| cos(theta)
V(2,1)= ||V1|| sin(theta)
8 件のコメント
Jay
2014 年 5 月 6 日
Youssef Khmou
2014 年 5 月 6 日
編集済み: Youssef Khmou
2014 年 5 月 6 日
The correct answer is -93.5259, there is ambiguity is sign (cos(theta)=cos(-theta) :
p=[-0.0615;-0.9981];
theta=-acosd(dot([1 0],p))
You can verify this as p is normalized |p|=1 :
cosd(theta)
sind(theta)
Jay
2014 年 5 月 6 日
Youssef Khmou
2014 年 5 月 6 日
編集済み: Youssef Khmou
2014 年 5 月 6 日
Yes correct, when you use 'eig', the diagonal elements Dii are sorted in descending order.
Jay
2014 年 5 月 6 日
Youssef Khmou
2014 年 5 月 7 日
check this example : eig(randn(10)), can you post a counter example?
Jay
2014 年 5 月 7 日
Jay
2014 年 5 月 7 日
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!