| Using Simulink | ![]() |
Implement a linear state-space system.
Library
Description
The State-Space block implements a system whose behavior is defined by:
where x is the state vector, u is the input vector, and y is the output vector. The matrix coefficients must have these characteristics, as illustrated in the diagram below:

The block accepts one input and generates one output. The input vector width is determined by the number of columns in the B and D matrices. The output vector width is determined by the number of rows in the C and D matrices.
Simulink converts a matrix containing zeros to a sparse matrix for efficient multiplication.
Data Type Support
A State-Space block accepts and outputs real signals of type double.
Parameters and Dialog Box
Characteristics
| Direct Feedthrough |
Only if D 0 |
| Sample Time |
Continuous |
| Scalar Expansion |
Of the initial conditions |
| States |
Depends on the size of A |
| Dimensionalized |
Yes |
| Zero Crossing |
No |
| Slider Gain | Step | ![]() |