Zero Install · WebAssembly Engine · 100% Free

Free Online State-Space Simulator

Simulate continuous MIMO and SISO systems defined by ẋ = Ax + Bu, y = Cx + Du directly in your browser. Test LQR controllers, electrical circuits, and multi-state dynamics in real time.

▶ Launch Inverted Pendulum LQR Try RLC Circuit Model

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.

Optimal Control · LQR

Inverted Pendulum LQR

Stabilize an inverted pendulum on a cart using full-state feedback u = −Kx and disturb it live to watch recovery.

Launch Model →
Electrical Network

Series RLC Circuit Dynamics

Observe inductor current and capacitor voltage states evolve simultaneously under a voltage step input.

Launch Model →
Mechanical · 2-DOF

Active Vehicle Suspension

Multi-state vertical body and wheel dynamics controlled by an active actuator feedback loop.

Launch Model →

Frequently Asked Questions

Can I set nonzero initial states x(0)?
Yes. Unlike transfer functions, the StateSpace block accepts an initial condition vector x0 so you can simulate free-decay and disturbance recovery from any starting state.
How does BlockWerk handle stiff state-space systems?
BlockWerk includes both an adaptive Dormand-Prince (RK45) solver and an implicit TR-BDF2 solver for stiff electrical, thermal, and mechanical systems.
Is BlockWerk free without installation?
Yes, 100% free in your browser via WebAssembly — no MATLAB license, downloads, or sign-up required.