Simultaneous diagonalization of two matrices

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 件のコメント

Daniel M
Daniel M 2019 年 10 月 7 日
[v,D] = eig(A,B)
Yes, were you having issues with this? Do the values satisfy the general eigenvalue problem Av = DBv?
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 件)

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

質問済み:

2019 年 10 月 7 日

コメント済み:

2019 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by