Plot time vs displacement of mass/spring/damper system step response, underdamped

Hi,
I can't seem to find a simple example for plotting time vs displacement for an underdamped mass/spring/damper system to a step response.
Any pointers in the right direction are appreciated!

类别

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by