Visit http://CivilEngineeringBible.com for newer posts and files
Here is the result of my MATLAB code for dynamic analysis of a four degrees of freedom structure:
Newmark method is used in this program.
Feel free to contact me via email (hosseinali.sut@gmail.com) for MATLAB files:
newmark_1d.m