Here is the result of my MATLAB code for dynamic analysis of a four degrees of freedom structure:
Feel free to contact me via email (hosseinali.sut@gmail.com) for MATLAB files:
newmark_1d.m
Finite Element Services including MATLAB programming, CAD/CAE, free MATLAB codes and etc.
Contact me: hosseinali.sut@gmail.com