I tried computing the eigen vectors and eigen values for a 3x3 matrix, but the result is given in fractions after I used format rational. How can I change the format so as to get values in my matrix that include square root ? (i.e, sqrt(2)/2 )
Here are my codes:
A = [3 1 1 ;1 0 2;1 2 0];
>> [V,D] = eig(A)
V =
0.0000 0.5774 -0.8165
0.7071 -0.5774 -0.4082
-0.7071 -0.5774 -0.4082
D =
-2.0000 0 0
0 1.0000 0
0 0 4.0000
댓글 수: 1
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/613196-converting-values-in-eigenvector-to-rational-forms-that-include-square-roots#comment_1057766
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/613196-converting-values-in-eigenvector-to-rational-forms-that-include-square-roots#comment_1057766
댓글을 달려면 로그인하십시오.