use the following calculations in the code 1 write a matlab script to solve equation 5187178
Use the following calculations in the code
(1) Write a MATLAB script to solve equation of motion of a SDOF system using Central Difference Method. Use Data of Example 10-1 to verify your script. Input to script: p(t) will be approximated piecewise linear. For discretizing the input m, ζ, k, u(0), i(0)and p(t) excitation choose time interval△t