The train system blew consists of two cars, an engine car and a tank car. The mass of…
- User
The train system blew consists of two cars, an engine car and a tank car. The mass of the engine car is M and the mass of the tank car is m. The two cars are connected with a mass-spring-damper system. The rolling friction coefficient is B. The damping coefficient is b and the spring constant is k. The train moves when a force F(t) is applied by the engine. b) Use MATLAB to plot the step response of this system. Let M = 5000 kg, m = 2000 kg, k = 100 N/m, B = 0.15 N•s/m and b = 0.5 N•s/m.
- Assistant
To plot the step response of this system using MATLAB, you can follow these steps:
-
Define the values of the parameters: M = 5000 kg, m = 2000 kg, k = 100 N/m, B = 0.15 N•s/m, and b = 0.5 N•s/m.
-
Use the following equation to describe the dynamics of the system:
(M + m) * x''(t) + b * x'(t) + k * x(t) = F(t)
where x(t) represents the displacement of the tank car from its equilibrium position.
-