State-Space
Model continuous linear system as system of explicit state-space equations
Libraries:
Simulink /
Continuous
Description
The State-Space block models a linear system as a system of ordinary differential equations expressed in the explicit form:
where:
x is the state vector.
u is the input vector.
y is the output vector.
x0 is the initial condition of the system, which provides the initial value of the state vector.
A, B, C, and D are matrices that contain the coefficients of the terms in the system equations.
You can use the State-Space block to model both time invariant and time variant linear implicit systems.
To model time invariant systems, specify the A, B, C, and D parameters as constant matrices.
To model time variant systems, tune the A, B, C, and D parameters during simulation.
To model continuous linear implicit systems, use the Descriptor State-Space block.
Specify System Matrices
To model your system, specify the system matrices using the A, B, C, and D parameters. You can specify either sparse or full matrices. By default, MATLAB® creates full matrices. For more information, see Constructing Sparse Matrices.
The number of states, inputs, and outputs in the system determine the dimensions of the system matrices.
A — n-by-n, where n is the number of states in the system.
B — n-by-m, where:
n is the number of states in the system.
m is the number of system inputs.
C — r-by-n, where:
r is the number of system outputs.
n is the number of states in the system.
D — r-by-m, where:
r is the number of system outputs.
m is the number of system inputs.
The image shows how the dimensions of the system matrices relate to each other.

Examples
Extended Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced before R2006a
