One-dimensional spring-mass-damper system:
Given variables: mass (m), spring constant (k), damping constant (c), distance travelled (x), force applied at the center of mass in the positive direction (F).
The differential equation of the mass-spring-damper system is:
m(d^2x/dt^2) + c(dx/dt) + kx = F
Assume that m = 1 kg, c = 0.1, k = 0.2, and F = 3sin(3t). Also, assume that x(0) = 0 and dx/dt(0) = 3 m/s.
Compute the response of the mass-spring-damper system from time t = 0 to t = 10 s. Plot x and dx/dt as functions of time.
What does the plot look like?
[Hint: The response can be solved in several ways. You can use ode45 in MATLAB. Type "help ode45" in the command window to see how to use it.]
What is the value of x at t = 10 s?
[Precision: decimal place]
What is the value of dx/dt at t = 10 s?
[Precision: decimal place]