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!