dss
Constructs a descriptor state-space model.
Syntax
SYS = dss(A, B, C, D, E)
SYS = dss(A, B, C, D, E, Ts)
Inputs
- 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 x n).
- Ts
- Sampling time (in seconds). Default: Ts = -1 leaves the sampling time unspecified.
Outputs
- SYS
- Continuous-time state-space model.
Examples
A = [0 0.1;
-0.2 -0.3];
B=[0;
1];
C=[1, 0];
D = 0;
E=[0.3 3; -2 -0.4];
sys1 = dss(A, B, C, D, E)
sys1 = object [
Scaled: 0
TimeUnit: seconds
ts: 0
a: [Matrix] 2 x 2
0.00000 0.10000
-0.20000 -0.30000
b: [Matrix] 2 x 1
0
1
c: [Matrix] 1 x 2
1 0
d: 0
e: [Matrix] 2 x 2
0.30000 3.00000
-2.00000 -0.40000
type: StateSpaceModel
]
tf_sys=tf([1],[1 5 6]);
sys=ss(tf_sys);
sys2 = dss(sys.a, sys.b, sys.c, sys.d, sys.e)
sys2 = object [
Scaled: 0
TimeUnit: seconds
ts: 0
a: [Matrix] 2 x 2
-5 -3
2 0
b: [Matrix] 2 x 1
0.50000
0.00000
c: [Matrix] 1 x 2
0 1
d: 0
e: [Matrix] 0 x 0
type: StateSpaceModel
]
Comments
SYS = dss(A, B, C, D, E) constructs a descriptor state-space model with A, B, C, D, E parameters.
SYS = dss(A, B, C, D, E, Ts) constructs the discrete-time descriptor state-space model.