Coding the Mass-Spring-Damper System in MATLAB (1/2)

Опубликовано: 01 Май 2026
на канале: Jaisohn Kim, PhD
15,637
97

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