Need to solve in mat lab please help For the matrixes A below, find a factorizat
ID: 2901868 • Letter: N
Question
Need to solve in mat lab please help
For the matrixes A below, find a factorization of A in the form A=PCP-1 or A=PDP-1 where C is a block-diagonal matrix with 2 Times 2 blocks of the form and D is a diagonal matrix D. Consider that the matrices P, C, D have real entries. Discuss your results (why did you obtain one type of factorization or the other; can you obtain both types of factorization for the same matrix). Hint: For each conjugate pair of eigenvalues, use the real and imaginary parts of one eigenvector in C4 to create two columns of P. Hint: Use the eig command to create the diagonal matrix D and find eigenvectors to create an invertible matrix P.Explanation / Answer
A=[1 5;-2 3];
[V,D]=eig(A)
P=[real(V(:,1)) imag(V(:,1))];
C=[real(D(1,1)) imag(D(1,1)); -imag(D(1,1)) real(D(1,1))];
P*C*inv(P) %We can check our work- We should get A back
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.