Discrete State-Space
Realises a discrete system in the state space.
Description
Block behaviour for non-empty matrices
Block Discrete State-Space 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 by , where is the number of states.
-
B must be a matrix of size by , where is the number of input parameters.
-
C must be a matrix of size to , where is the number of outputs.
-
D must be a matrix of size to .
The block takes one input and generates one output. The length of the input vector is the number of columns in the matrices B и D. The length of the output vector is the number of rows in the matrices C и D. To set the initial state vector, use the Initial conditions parameters.
To specify a vector or a matrix of zeros for A, B, C, D, or Initial conditions, use the zeros
function.
Ports
Input
#
IN_1
—
input signal
scalar
| vector
| matrix-column
Details
An input vector whose length is equal to the number of columns in the matrices B и D.
Data types |
|
Complex numbers support |
No |
Output
#
OUT_1
—
output signal
scalar
| vector
Details
Output vector whose length is equal to the number of rows in the matrices C и D.
Data types |
|
Complex numbers support |
No |
Parameters
Main
# A — matrix A
Details
matrix coefficient A of size to , where is the number of states.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |
# B — matrix B
Details
matrix coefficient B of size to , where is the number of input parameters.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |
# C — matrix C
Details
matrix coefficient C of size to , where is the number of outputs.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |
#
D —
matrix D
Scalar / array of real numbers
Details
Matrix coefficient D of size to , where is the number of outputs and is the number of input parameters.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |
#
Initial conditions —
initial state vector
Scalar / vector of real numbers
Details
Specify the initial state vector.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |
#
Sample time —
interval between calculation steps
SampleTime (real number / vector of two real numbers)
Details
Specify the interval between calculation steps as a non-negative number. To inherit a calculation step, set this parameter to -1
.
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |