State-Space
Creates a linear dynamic object defined in the state space.
Description
The State-Space block implements a system whose behaviour is defined as:
,
where is the state vector whose elements are called the states of the system, is the control vector, is the output vector, and is the initial condition of the state vector. The matrices A, B, C and D can be specified as either sparse matrices or dense matrices. The matrix coefficients should have the following characteristics:
-
A is the matrix of the system, to , where is the number of states.
-
B - control matrix, to , where is the number of inputs.
-
C - output matrix, to , where is the number of outputs.
-
D - direct communication matrix to .
The block has one input port and one output port. The number of rows in the C or D matrix is the same as the output port width. The number of columns in the board matrix is the same as the width of the input port. If you want to model an autonomous linear system without input data, set the B and D matrices to empty
. In this case, the block acts as a block with no input port and one output port and realises the following system:
.
Ports
Parameters
A - matrix of the system, A
[1.0;;] (by default)
| scalar
| vector
| matrix
| sparse matrix
Specify the matrix A to , where is the number of states.
Block parameter |
|
Values |
|
* By default* |
|
B - control matrix, B
[1.0;;] (by default)
| scalar
| vector
| matrix
| sparse matrix
Specify the matrix B to , where is the number of states and is the number of inputs.
Block parameter |
|
Values |
|
* By default* |
|
C - output matrix, C
[1.0;;] (by default)
| scalar
| vector
| matrix
| sparse matrix
Specify the C matrix to , where is the number of outputs and is the number of states.
Block parameter |
|
Values |
|
* By default* |
|
D is the direct coupling matrix, D
[1.0;;] (by default)
| scalar
| vector
| matrix
| sparse matrix
Specify the matrix D to , where is the number of output data and is the number of input data.
Block parameter |
|
Values |
|
By default |
|
Initial conditions - initial state vector
0.0 (by default)
| scalar
| vector
Initial condition vector.
Block parameter |
|
Values |
|
* By default* |
|