Discrete State-Space
Realises a discrete system in the state space.
Description
Block behaviour for non-empty matrices
The Discrete State-Space block realises the system described by the following equations:
,
Where:
-
- input.
-
- state.
-
- output.
The matrix coefficients should have the following characteristics as shown in the diagram:
-
A must be a matrix of size n by n, where
n
is the number of states. -
B should be a matrix of size n by m, where
m
is the number of input parameters. -
C must be a matrix of size r by n, where
r
is the number of outputs. -
D must be a matrix of size r by m.
The block takes one input and generates one output. The length of the input vector is the number of columns in matrices B and D. The length of the output vector is the number of rows in the C and D matrices. To specify the initial condition vector, use the Initial conditions parameter.
To specify a vector or matrix of zeros for A, B, C, D, or Initial conditions, use the zeros
function.
Ports
Parameters
Main
A - matrix A
1 (by default)
| scalar
| vector
| matrix
A matrix factor A of size n by n, where n
is the number of states.
Block parameter |
|
Values |
|
* By default* |
|
B - matrix B
1 (by default)
| scalar
| vector
| matrix
A B matrix factor of size n by m, where n
is the number of states and m
is the number of input parameters.
Block parameter |
|
Values |
|
* By default* |
|
C - matrix C
1 (by default)
| scalar
| vector
| matrix
A C matrix factor of size r by n, where r
is the number of outputs and n
is the number of states.
Block parameter |
|
Values |
|
* By default* |
|
D - matrix D
1 (by default)
| scalar
| vector
| matrix
A matrix factor D of size r by m, where r
is the number of outputs and m
is the number of input parameters.
Block parameter |
|
Values |
|
By default |
|
Initial conditions - initial state vector
0 (By default)
scalar
| vector
Specify the initial condition vector.
Block parameter |
|
Values |
|
By default |
|
Sample time (-1 for inherited) - interval between calculation steps
-1 (by default)
| scalar
Specify the interval between calculation steps as a non-negative number. To inherit a calculation step, set this parameter to -1
.
Block parameter |
|
Values |
|
By default |
|