I am studying a three stories frame under a seismic load due to ground acceleration. the frame has three degrees of freedom, so the solution of the equation of motion must have 3x1 matrix. Knowing that the mass, stiffness, and damping matrix were determined. the ground acceleration data was determined from a reference as an acceleration - time data for each time increment.
The problem is that I cant define the system in matlab so i can solve it. i searched for different sources but i didn't find any useful reference. does anyone have any ready code so i can benefit from it.
thanks in advance