decomplexification of a matrix

Hi, I have the following matrix
A= [5 10;
-1 -1]
This matrix has two complex eigenvalues e = 2 +- i
I would like to obtain a matrix
T=[a -b;
b a]
using matlab.
manually the solution is
(-3 - i(1
1) 0)
and
P=[-3 1;
1 0];
Pinv=[0 1;
1 3]
and
Pinv*A*P=[2 -1;
1 2]
as the matrix T.
But how can I do it using matlab?
My best regards, jim

Answers (1)

Just like you have it. Did you try:
A= [5 10;
-1 -1]
P=[-3 1;
1 0]
Pinv=[0 1;
1 3]
T = Pinv*A*P
In the command window:
A =
5 10
-1 -1
P =
-3 1
1 0
Pinv =
0 1
1 3
T =
2 -1
1 2
If so, isn't that what you want? Or did you run into problems?

Categories

Find more on Linear Algebra in Help Center and File Exchange

Asked:

on 5 Feb 2015

Answered:

on 6 Feb 2015

Community Treasure Hunt

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

Start Hunting!