STATE SPACE MODELS. MATLAB Tutorial. Why State Space Models. The state space model represents a physical system as n first order differential equations. This form is better suited for computer simulation than an nth order input-output differential equation. . Basics.
where y is the output equation, and x is the state vector
mv' + bv + kx - f(t) = 0
v' = (-b/m)v + (-k/m)x + f(t)/m
y = x
x' = v
v' = (-k/m) x + (-b/m) v + f(t)/m
statespace = ss(A, B, C, D)
where A, B, C, and D are from the standard vector-matrix form of a state space model.
where statespace is the name of the state space system.