Harmonic excitation of a SDOF
Harmonic excitation of a SDOF
Summary
The exact solution of a damped Single Degree Of Freedom (SDOF) system is excited by a harmonic force is calculated [1]. It is compared to the numerical solution provided by the Matlab built-in function ode 45, the central difference method, Newmark method and the 4th order Runge-Kutta method, the implementation of which is based on the book from S. Rao [2].
Content
The repositroy contains:
- The function RK4.m, which solves numerically the equations of motion of a damped system with the 4th order Runge-Kutta method
- The function Newmark.m, which solves numerically the equations of motion of a damped system with Newmark's method
- The function CentDiff.m, which solves numerically the equations of motion of a damped system with the central difference method
- A Matlab livescript Documentation.mlx for the documentation
References
[1] Daniel J. Inman, Engineering Vibrations, Pearson Education, 2013
[2] Singiresu S. Rao, Mechanical Vibrations,Prentice Hall, 2011
Cite As
E. Cheynet (2026). Harmonic excitation of a SDOF (https://github.com/ECheynet/Excitation_SDOF/releases/tag/v2.3), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Numerical Integration and Differential Equations >
- Engineering > Mechanical Engineering > Acoustics, Noise and Vibration >
Tags
Acknowledgements
Inspired: Damping ratio estimation from ambient vibrations (SDOF)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 2.3 | See release notes for this release on GitHub: https://github.com/ECheynet/Excitation_SDOF/releases/tag/v2.3 |
||
| 2.2.2 | See release notes for this release on GitHub: https://github.com/ECheynet/Excitation_SDOF/releases/tag/v2.2.2 |
||
| 2.2.1 | See release notes for this release on GitHub: https://github.com/ECheynet/Excitation_SDOF/releases/tag/v2.2.1 |
||
| 2.2 | Added project website |
||
| 2.1.0.0 | The inputs of the Newmark-Beta funciton are ordered to be consistent with the function CentDiff |
||
| 2.0.0.0 | Added Newmark and Runge-Kutta methods |
||
| 1.0.0.0 | - picture added |

