MATLAB Answers

How to Make a Matrix Diagonal with Matlab?

10 ビュー (過去 30 日間)
Hollis Williams
Hollis Williams 2018 年 4 月 10 日
編集済み: Roger Stafford 2018 年 4 月 10 日
I am working on a quantum mechanics problem and would like to get a 4x4 matrix A into diagonal form such that A=UDU^{-1}. Basically I just need to know the values of D and U required in the expression to make A a diagonal matrix (where D is diagonal) as I can then use it to do an explicit calculation for a matrix exponential. As it is the matrix is not diagonal, so I cannot use the explicit expression for the matrix exponential. Is there a code with Matlab that can calculate D and U simply?
The matrix is 4 x 4 and has elements
1 0 0 1
0 -1 1 0
0 1 -1 0
1 0 0 1

  0 件のコメント

サインイン to comment.

回答 (1 件)

Roger Stafford
Roger Stafford 2018 年 4 月 10 日
編集済み: Roger Stafford 2018 年 4 月 10 日
Call on Matlab's 'svd' function. Read about it at:
https://www.mathworks.com/help/matlab/ref/svd.html
or possible you need the 'eig' function at:
https://www.mathworks.com/help/matlab/ref/eig.html

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ

製品


Translated by