Discrete StateSpace
Implement discrete statespace system
Libraries:
Simulink /
Discrete
Simulink /
Quick Insert /
Discrete
HDL Coder /
RCP and HIL
Description
Block Behavior for NonEmpty Matrices
The Discrete StateSpace block implements the system described by
$$\begin{array}{c}x(n+1)=Ax(n)+Bu(n)\\ y(n)=Cx(n)+Du(n),\end{array}$$
where u is the input, x is the state, and y is the output. The matrix coefficients must have these characteristics, as illustrated in the following diagram:
A must be an nbyn matrix, where n is the number of states.
B must be an nbym matrix, where m is the number of inputs.
C must be an rbyn matrix, where r is the number of outputs.
D must be an rbym matrix.
The block accepts one input and generates one output. The width of the input vector is the number of columns in the B and D matrices. The width of the output vector is the number of rows in the C and D matrices. To define the initial state 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.
Block Behavior for Empty Matrices
When the matrices A, B,
and C are empty (for example, []
),
the functionality of the block becomes y(n) = Du(n)
.
If the Initial conditions vector is also empty, the block uses an initial state vector of zeros.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types 

Direct Feedthrough 

Multidimensional Signals 

VariableSize Signals 

ZeroCrossing Detection 

Extended Capabilities
Version History
Introduced before R2006a
See Also
StateSpace  FixedPoint StateSpace  Generate HDL Code from Simulink Model (HDL Coder)  Basic HDL Code Generation Workflow (HDL Coder)