Main Content

PS State-Space

Implement linear state-space system

Since R2025a

  • PS State-Space block

Libraries:
Simscape / Foundation Library / Physical Signals / Linear Operators

Description

The PS State-Space block implements a state-space representation of the linear time-invariant system, defined by equations:

Ex˙=Ax+Bu,y=Cx+Du,

where:

  • x is the dimensionless state vector.

  • u is the input vector.

  • y is the output vector.

  • E is the descriptor matrix.

  • A is the state matrix.

  • B is the input matrix.

  • C is the output matrix.

  • D is the feedthrough, or direct transmission matrix.

The state-space model provides a compact and efficient way to represent and analyze systems with multiple inputs and outputs. This model is particularly useful for control design and simulation of dynamic systems.

You can define matrices in your workspace and then use these workspace variables as block parameters.

Examples

Ports

Input

expand all

Input physical signal.

Output

expand all

Output physical signal.

Parameters

expand all

State matrix, specified as an n-by-n matrix, where n is the number of states.

Input matrix, specified as an n-by-m matrix, where n is the number of states and m is the number of elements in the input vector.

Output matrix, specified as an r-by-n matrix, where r is the number of elements in the output vector and n is the number of states.

Feedthrough, or direct transmission matrix, specified as an r-by-m matrix, where r is the number of elements in the output vector and m is the number of elements in the input vector.

Mass matrix of the system. The mass matrix can be singular or nonsingular and must have the same dimensions as the state matrix A.

Dimensionless vector that represents the initial conditions of the state vector at time t=0.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2025a