Seismic Response Spectrum GUI

version (102 KB) by Cristina M.Vila
This script aims to offer the Shock Response Spectrum of an earthquake's acceleration time history


Updated Wed, 09 Mar 2016 10:12:48 +0000

View License

This script aims to offer the Shock Response Spectrum of an acceleration time history of an earthquake which is known. Therefore, it enables the user to calculate the Peak Ground Acceleration (PGA) and Pseudo Velocity. It also plots the solution and stores them in a file allowing certain changes such as the acceleration unit.
The mathematical algorithm used for the calculation can be chosen by the user among the following, which are included in the script: Kelly Richman, Smallwood and Newmark.

The user must provide the acceleration time history of the earthquake he wants to test, as well as introduce the damping parameter and the starting frequency for the iteration. The damping parameter can be either a damping ratio or quality factor.

The time history of the earthquake, must have two columns: time(sec) and acceleration. This data can be already pre-loaded into Matlab, or introduced by selecting the option ‘Open new ASCII file’ inside the popup menu named ‘File Input Method’.

As soon as the method has been selected the script will automatically plot the Peak Ground Acceleration. Nevertheless the user can obtain the results of the Pseudo Velocity.

Lastly, the script offers the possibility to store the results obtained by clicking ‘Output data in a file’. The script will request a filename and a directory and automatically create a .dat file.

- This file includes the srs.m file, uploaded by Tom Irvine in 2006 as one of the eligible calculation methods.

- For further information, please relate to the document "SeismicResponseSpectrumGUI.pdf" included in the .zip file.

Cite As

Cristina M.Vila (2022). Seismic Response Spectrum GUI (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Shock Response Spectrum

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!