matrix with entries as variable

34 Ansichten (letzte 30 Tage)
Wajahat
Wajahat am 6 Mär. 2017
Kommentiert: Wajahat am 6 Mär. 2017
I have a matrix equation
A=B C B^{-1}
If
A=[0 x+i/2(y+z); x-i/2(y+z) 0]
C=[x y; z -x]
where i is iouta.
then how can we find the the matrix B in matlab?
Note: all the matrices are 2 x 2.

Antworten (1)

Walter Roberson
Walter Roberson am 6 Mär. 2017
If A=B C B^{-1} then right-multiply by B to get A*B = B * C * B^{-1} * B which is A*B = B * C
syms x y z iota
A=[0 x+iota/2*(y+z); x-iota/2*(y+z) 0]
C=[x y; z -x]
B = sym('b',[2 2])
sol = solve(A*B == B*C, B)
sol.b1_1, sol.b1_2, sol.b2_1, sol.b2_2
You will find that the result is all 0
  3 Kommentare
Wajahat
Wajahat am 6 Mär. 2017
thanx

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by