How to find matrix S, given by this equation
Show older comments
I have matrix L and the right-hand side of equation below.
How can I get matrix S?
All the matrices are square matrix.

1 Comment
Bruno Luong
on 24 Apr 2022
L must have rank<n Do we know something else, such a is L Hermitian? Same question for J.
Accepted Answer
More Answers (2)
Sam Chak
on 24 Apr 2022
@NA, thanks for your clarification on the dimensions.
Is this some kind of a Linear Algebra problem?
It seems that the square matrix L is unique, and has to satisfy certain conditions.
For example, say the matrix
is given by
L = [0 1 0; 0 0 1; 0 -6 -5]
L =
0 1 0
0 0 1
0 -6 -5
Then, the eigenvalues of matrix
are
s = eig(L)
s =
0
-2.0000
-3.0000
Next, the matrix
is constructed from the eigenvalues such that
S = [1 1 1; s(1) s(2) s(3); s(1)^2 s(2)^2 s(3)^2]
S =
1.0000 1.0000 1.0000
0 -2.0000 -3.0000
0 4.0000 9.0000
Finally, we can test if
is a diagonal matrix where the diagonal elements are the eigenvalues of matrix
:
D = S\L*S
D =
0 0.0000 0.0000
0 -2.0000 -0.0000
0 0.0000 -3.0000
Only a centain square matrix
can produce such diagonal matrix. For example:
L = [0 1 0; 0 0 1; 0 -15 -8]
L =
0 1 0
0 0 1
0 -15 -8
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!