Question about number format
古いコメントを表示
When I calculate the eigenvectors of the following matrix:
mat=[1,2;2,1];
[V,D]=eig(mat)
I get:
V =
-0.7071 0.7071
0.7071 0.7071
However, this is not the correct answer, see Wolfram Alpha results or verify by yourself that the correct answer are the vectors:
[1,1] and [-1,1]
Could someone explain to be what went wrong here?
採用された回答
その他の回答 (1 件)
Mark Sherstan
2018 年 12 月 14 日
編集済み: Mark Sherstan
2018 年 12 月 14 日
1 投票
The answer is correct, MATLAB is just outputting the unit vector answer.
カテゴリ
ヘルプ センター および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!