State-Space Matrix Roles
State-space modeling generalizes transfer functions to multiple inputs, multiple outputs, and nonzero initial conditions x(0):
| Matrix | Dimension | Physical & Control Meaning |
|---|---|---|
| A (System) | n × n | Internal state dynamics; eigenvalues of A determine natural modes and stability |
| B (Input) | n × m | Maps m control inputs u(t) to state derivatives; determines controllability |
| C (Output) | p × n | Maps n internal states x(t) to p sensor outputs y(t); determines observability |
| D (Feedthrough) | p × m | Direct algebraic feedthrough from input u(t) to output y(t) (often 0) |
Ready-to-Run State-Space Templates
Click any model below to open an interactive state-space simulation immediately in your browser.
Inverted Pendulum LQR
Stabilize an inverted pendulum on a cart using full-state feedback u = −Kx and disturb it live to watch recovery.
Series RLC Circuit Dynamics
Observe inductor current and capacitor voltage states evolve simultaneously under a voltage step input.
Active Vehicle Suspension
Multi-state vertical body and wheel dynamics controlled by an active actuator feedback loop.
Frequently Asked Questions
StateSpace block accepts an initial condition vector x0 so you can simulate free-decay and disturbance recovery from any starting state.