construc matrix D by OD process?
Mostrar comentarios más antiguos
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 comentarios
John D'Errico
el 3 de Jul. de 2019
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
el 3 de Jul. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!