I would like to incorporate the calculation of the inelastic response spectra into some calculations and I would like to program it in MATLAB. All the references i've found are not clear enough about the steps to follow during the process. Thanks in advance.