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!

Asked:

on 22 Jan 2015

Answered:

on 22 Jan 2015

Community Treasure Hunt

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

Start Hunting!