Professional Documents
Culture Documents
Solve the following problems using the MATLAB. You need to copy the Simulink model and MATLAB
code in the report. You should submit the code and Simulink model as well.
A. Derive the equations of motion and write the equations in the following format:
1
𝑥𝑥1̈ = [𝑓𝑓(𝑡𝑡)1 − (𝑘𝑘1 + 𝑘𝑘2 )𝑥𝑥1 − (𝑐𝑐1 + 𝑐𝑐2 )𝑥𝑥1̇ + 𝑘𝑘2 𝑥𝑥2 + 𝑐𝑐2 𝑥𝑥2̇ ]
𝑚𝑚1
1
𝑥𝑥2̈ = [𝑓𝑓(𝑡𝑡)2 + 𝑘𝑘2 𝑥𝑥1 − (𝑘𝑘2 + 𝑘𝑘3 )𝑥𝑥2 + 𝑐𝑐2 𝑥𝑥1̇ − (𝐶𝐶2 + 𝑐𝑐3 )𝑥𝑥2̇ ]
𝑚𝑚2
B. Build a Simulink model for the above 2DOF mass-spring-damper system. Use the following
parameters: m1 = 1 kg; m2 = 1 kg; k1 = 10 N/m; k2 = 10 N/m; k3 = 10 N/m; c1 = 0.2 Ns/m; c2 = 0.2 N-
s/m; c3 = 0.2 N-s/m. Obtain the responses: x1(t) and x2(t) for the following conditions: (set the final
simulation time to see a steady-state response)
Figure 1
b)
c)
d)