dssdata

Extracts data from a descriptor state-space model.

Syntax

[A, B, C, D, E, Ts] = dssdata(SYSLTI)

Inputs

SYSLTI
The descriptor state-space model.

Outputs

A
The state matrix (n x n), where n is the number of states.
B
The input matrix (n x p), where p is the number of inputs.
C
The output matrix (q x n), where q is the number of outputs.
D
The direct transmission matrix (q x p).
E
The descriptor matrix (n by n).
Ts
Sampling time (in seconds)

Examples

Descriptor state-space model as input to the function:
A=[0 1;-2 -3];
B=[0;1];
C=[1 0];
D = 0;
E = [1 0; 0 1];
sys1 = dss(A, B, C, D, E)
[Aout, Bout, Cout, Dout, Eout] = dssdata(sys1)
Aout = [Matrix] 2 x 2
0   1
-2  -3
Bout = [Matrix] 2 x 1
0
1
Cout = [Matrix] 1 x 2
1  0
Dout = 0
Eout = [Matrix] 2 x 2
1  0
0  1
Descriptor state-space model obtained from a transfer function model:
tf_sys=tf([1],[1 5 6]);
sys1=ss(tf_sys);
sys2=dss(sys1.a,sys1.b,sys1.c,sys1.d,sys1.e);
[Aout, Bout, Cout, Dout, Eout] = dssdata(sys2)
Aout = [Matrix] 2 x 2
-5  -3
2   0
Bout = [Matrix] 2 x 1
0.50000
0.00000
Cout = [Matrix] 1 x 2
0  1
Dout = 0
Eout = [Matrix] 2 x 2
1  0
0  1