I am modelling two masses connected by a spring with an initial displacement from one another. I am using ode45 to solve four 1st order ODEs. Could someone help me to find a way to evaluate a value for the spring stiffness that would cause the (position of mass 2 – position of mass 1 = 0 at a given time )
I have tried following a few tutorials on here but cannot understand and apply the condition to my problem.
Best Answer