append

Appends the inputs and outputs of the two models.

Syntax

SYSR = append(SYS1, SYS2)

Inputs

SYS1
A state-space representation of a linear time-invariant system.
SYS2
A state-space representation of a linear time-invariant system.

Outputs

SYSR
A state-space representation of a linear time-invariant system.

Example

A1 = [1,0;3,2];
B1 = [1;0];
C1 = [0,1];
D1 = [1];
SYS1 = ss(A1, B1, C1, D1);
A2 = [1,0,1;1,3,0.5;0,0,4];
B2 = [1;0;0];
C2 = [1,0,1];
D2 = [1];
SYS2 = ss(A2, B2, C2, D2);
SYSR = append(SYS1, SYS2)
SYSR = object [
Scaled: 0
TimeUnit: seconds
ts: 0
a: [Matrix] 5 x 5
1.00000 0.00000 0.00000 0.00000 0.00000
3.00000 2.00000 0.00000 0.00000 0.00000
0.00000 0.00000 1.00000 0.00000 1.00000
0.00000 0.00000 1.00000 3.00000 0.50000
0.00000 0.00000 0.00000 0.00000 4.00000
b:[Matrix] 5 x 2
1 0
0 0
0 1
0 0 
0 0
c: [Matrix] 2 x 5
0 1 0 0 0 
0 0 1 0 1
d: [Matrix] 2 x 2
1 0
0 1
e: [Matrix] 0 x 0 
type: StateSpaceModel

Comments

The function creates an augmented model by connecting the system matrices of two input system models.