New in Wolfram
Mathematica
8: Integrated Control Systems Design
◄
previous
|
next
►
Application Areas
Specify Models of Linear, Time-Invariant Systems in Natural Form
The linearized state-space model of an inverted pendulum is generated from the underlying equations of motion and typeset in a natural traditional form.
In[1]:=
X
StateSpaceModel[{(M + m) x''[t] - m l Sin[\[Theta][t]] \[Theta]'[t]^2 + m l Cos[\[Theta][t]] \[Theta]''[t] == F[t], m x''[t] Cos[\[Theta][t]] + m l \[Theta]''[t] == m g Sin[\[Theta][t]]}, {{\[Theta][t], 0}, {\[Theta]'[t], 0}, {x[t], 0}, {x'[t], 0}}, {{F[t], 0}}, {\[Theta][t], x[t]}, t, SystemsModelLabels -> {"F[t]", {"\[Theta][t]", "x[t]"}, {"\[Theta][t]", "\[Theta]'[t]", "x[t]", "x'[t]"}}]
Out[1]=