construc matrix D by OD process?
이전 댓글 표시
If i have matrix A=[ 1 -2 2
-2 4 -4
2 -4 4 ];
Then i want find S is orthogonal(construct by eigenbasis) and D is orthogonal diagonalization(diagonal matrix).
I construct D like this:
char=charpoly(A);
eigenvalues=roots(char);
eigenvalues=flipud(eigenvalues);
%This is matrix D
D=diag(eigenvalues);
Am i right?
Plz fix me.
Many thank
댓글 수: 2
John D'Errico
2019년 7월 3일
Are you right? Well, D is diagonal. It will contain the eigenvalues, because you managed to find them via a different scheme based on the character istic polynomial. But, did you obtain it by an orthogonal diagonization process? No. So are you right? Not really.
Le Xuan Thang
2019년 7월 3일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!