Project - Position control of mass spring damper system
To obtain the transfer function of a mass-spring-damper system, we can start with the equation of motion for the system:
m * x'' + c * x' + k * x = F
where x is the displacement of the mass, m is the mass, c is the damping coefficient, k is the spring constant, F is the external force applied to the mass, and ' denotes differentiation with respect to time.
Taking the Laplace transform of the above equation and assuming zero initial conditions, we get:
s^2 * M(s) + c * s * X(s) + k * X(s) = F(s)
where M(s), X(s), and F(s) are the Laplace transforms of m, x, and F, respectively. Solving for X(s), we get:
X(s) = F(s) / (s^2 * M(s) + c * s + k)
Substituting the given values of m, c, and k, we get:
X(s) = F(s) / (3.6 * s^2 + 100 * s + 400)
This is the transfer function of the mass-spring-damper system.
Lets us Input the following in a Matlab script to:






