series

Connects two state-space or transfer function in a series.

Syntax

RSYS = series(SS1, SS2)

RSYS = series(SYS1, SYS2, VOUT1, VIN2)

Inputs

SS1
A state-space or transfer function model.
SS2
A state-space or transfer function model.
VOUT1
A vector indicating which outputs of SYS1 to connect.
VIN2
A vector indicating which inputs of SYS2 to connect.

Outputs

SYS
A transfer function or state-space model.

Examples

Transfer function model inputs:
H1 = tf(2,[1 3 0]);
H2 = tf(1,[8 2 1]);
HR = series(H1, H2)
Transfer function for input 1, output 1
 
                       2
          ----------------------------
          8 s^4 + 26 s^3 + 7 s^2 + 3 s
 
> 
State space model inputs:
[a, b, c, d] = ord2(1, 3); % Generates the state-space description (A,B,C,D) of the second-order system
sys1 = ss(a, b, c, d);
[a, b, c, d] = ord2(3, 6);
sys2 = ss(a, b, c, d);
sysr = series(sys1, sys2)
sysr = object [
Scaled: 0
TimeUnit: seconds
ts: 0
a: [Matrix] 4 x 4
 0    1   0   0
-9  -36   1   0
 0    0   0   1
 0    0  -1  -6
b: [Matrix] 4 x 1
0
0
0
1
c: [Matrix] 1 x 4
1  0  0  0
d: 0
e: [Matrix] 0 x 0
type: StateSpaceModel
]

Comments

Connects two state-space or transfer functions in a series, either both continuous or both discrete with identical sampling times.