Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ResponseSpectrum PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

%%% Ali Ejaz %%%

%%% ID: 6278808121 %%%

%This script calculates Response Spectrum of a SDOF system subjected to Elcentro-


% earthquake by using State-Space Method
clear all; clc;
%% Loading Ground Excitation
eq=load('elcentro.txt');
eqa=eq(:,2).*9.81; %converting data into acceleration
t=eq(:,1); %time vector corresponding to Elcentro earthquake
%% Defining parameters for SDOF system
zeta=0.05; %damping ratio
dt=eq(2,1)-eq(1,1); %sampling time interval
T=(0.001:0.01:5); %time periods for which maximum response is to be obtained
omega=(2*pi)./T; %angular frequencies for which maximum response is to be obtained
%% State-Space Application
[sp] = statespace(omega,zeta,eqa,dt);
%% Pseudo-Acceleration
spP=sp.*omega.*omega; %getting pseudo acceleration
%% Plotting Response Spectrum
PlotFunction(T,spP);

You might also like