SYNTAX: [an,bn,cn,dn]=transform_states(A,B,C,D,T)
-1
PURPOSE: Performs the similarity transform z = T x. The resulting state
space system is:
. -1 -1
z = [T AT] z + [T B] u
y = [CT ] z + Du
NOTE: In most cases, the function ss2ss will perform the same function,
but in some cases, the "balance" function returns T that is nearly
singular. In that case, ss2ss requires T^-1 and doesn't perform well.
INPUT:
A,B,C,D = original system description
T = state transformation
OUTPUT:
an,bn,cn,dn = transformed system description