%  Example 2.7.  Performs a similarity transformation.
clear
%  Define the state model matrices.
A=[-3  1
    1 -3];
B=[2
   0];
C=[4 -2];
D=3;
%  Define the transformation matrix.
T=[0.5  0.5
   0.5 -0.5];
%  Generate the transformed state model.
[At,Bt,Ct,Dt]=ss2ss(A,B,C,D,inv(T))
