ss2ss

Transforms a state-space model to another state-space model.

Syntax

SYSTOUT = ss2ss(SYSIN, T)

Inputs

SYSIN
A state space system.
T
A matrix; state coordinate transformation.

Outputs

SYSTOUT
Transformed state-space model.

Example

State Transformation including the function ss2ss:
A = [0 1; -2/3 -8/3];
% Input and output matrices
B = [0; 1/3];
C = [1 0];
D = 0;
sys = ss(A, B, C, D)   % state space system
[T, D] = eig(A);       % Eigenvalues at eigenvectors of A
P = inv(T)             % Transformation matrix
modifiedss = ss2ss(sys, P)  % diagonal form
modifiedss = object [
Scaled: 0
TimeUnit: seconds
ts: 0
a: [Matrix] 2 x 2
-0.68036  -0.77868
-9.24586  -4.04944
b: [Matrix] 2 x 1
0.16416
0.40926
c: [Matrix] 1 x 2
0.85050  2.03051
d: 0
e: [Matrix] 0 x 0
type: StateSpaceModel
]

Comments

SYST = ss2ss(SYS, T) returns a new state-space model SYSTOUT based on SYSIN and the state coordinate transformation T.

Please verify that the state coordinate transformation matrix T is invertible.