operator function'*'
Series connection of two state space systems
Information
Syntax
ss = StateSpace.'*'(ss1, ss2)
Description
This operator function computes the addition of two state space systems connected in series.
The operator is used by writing just the following command:
result := ss1 * ss2;
Example
StateSpace ss1 = StateSpace(A=[-1, 0; 0, -2], B=[1; 2], C=[0, 1], D=[0]); StateSpace ss2 = StateSpace(A=[-3, 0; 0, -4], B=[3; 4], C=[0, 2], D=[0.2]); StateSpace ss3; algorithm ss3 := ss1 - ss2; // ss.A = [-1, 0, 0, 0; 0, -2, 0, 0; 0, 0, -3, 0; 0, 0, 0, -4], // ss.B = [0.2; 0.4; 3; 4], // ss.C = [0, 1, 0, 0], // ss.D = [0],
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | ss1 | State space system 1 | |
| StateSpace | ss2 | State space system 2 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | result | y = G(s)*u = G(ss1)*G(ss2)*u |