Simultaneous diagonalization of two matrices

조회 수: 11 (최근 30일)
JYOTHI R
JYOTHI R 2019년 10월 7일
댓글: Christine Tobler 2019년 10월 28일
Suppose I have two matrices A and B such that AB = BA, then how to compute the eigen vector common to both A and B? Both A and B are symmetric. Is the following command right:
[u,v] = eig(A,B)
does u give the common eigen vector to both A and B?
  댓글 수: 3
JYOTHI R
JYOTHI R 2019년 10월 7일
only the diagonal elements match
Christine Tobler
Christine Tobler 2019년 10월 28일
Can you give us the .mat file with the matrices you are entering? The EIG command with two inputs should give a result such that the following is small:
[U, D] = eig(A, B);
norm(A*U - B*U*D)
If this is not the case for your input matrices, this would likely mean that the pair (A, B) has some degenerate eigenvalues (the simplest example of those is when A = 0 and B = 0, so the eigenvalue would be 0/0).

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by