Coding the Mass-Spring-Damper System in MATLAB (1/2)
Channel: Jaisohn Kim VT
Date: 2022-11-13

Virginia Tech ME 2004: Coding the Mass-Spring-Damper System in MATLAB (1/2)

This two-part video series implements the famous mass-spring-damper system into MATLAB. The solutions are obtained via ode45(). This video introduces the system and decomposes the governing 2nd-order ODE into a series of coupled 1st-order ODEs. The next video solves the system via MATLAB's ode45() and illustrates a few test cases involving various damping values and forcing functions. 

mck() function: https://bit.ly/mck_function
Blank .m file: https://bit.ly/mck_blank
Master (complete and commented) file: https://bit.ly/mck_master
Problem statement: https://bit.ly/mck_problem