State-Space Simulation

The State Space simulation uses a state-space model and an integration scheme to simulate the dynamics of a system. It can be implemented as follows:

//First Timestep
x_0 = initial condition state vector
u = input
xd = Ax0+Bu
y = Cx0+Du

//other timesteps
for timesteps in simulation
    x = integral(xd)
    u = input
    xd = Ax + Bu
    y = Cx + Du

the integral() function can be any numerical integration implementation.

[[State-Space Simulation in Python]]

  • matlabWaysImplementTransfer2020a

Backlinks:

[[Implementing Transfer Functions]]
[[Numerical Integration Methods]]
State-Space Model