« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Enhanced Control Systems

A Mechanical System with Algebraic Constraints 

This mass-spring-damper system includes a rigid bar that can prevent the motion of the second mass.

In[1]:=
Click for copyable input
X

Obtain a StateSpaceModel representation.

In[2]:=
Click for copyable input
X
Out[2]=

Use OutputResponse to simulate the system both when the bar is locked and when it is unlocked.

In[3]:=
Click for copyable input
X
In[4]:=
Click for copyable input
X
Out[4]=
In[5]:=
Click for copyable input
X
Out[5]=