Professional Documents
Culture Documents
PGA= -0,3177g
Tiempo PGA= 15.18 seg
title('Registro en Portoviejo','fontsize',22,'color','r')
xlabel('t(seg)')
ylabel('Aceleracin (g)')
grid on
PGA= 0,3803g
Tiempo PGA= 10,99 seg
3.0000 5.0000
-0.3142 -0.3127
13.2400 13.2300
Direccin Horizontal 90
y=load ('APO1_Pedernales90.txt')/981;
%b)
for i=1:5
[PGA1,j]=max(abs(y));
PGA(i)=y(j);
tPGA(i)=x(j);
y(j)=0;
end
3.0000 5.0000
0.3730 0.3582
11.0000 10.9700
Encuadrada 0,05g
Direccin Horizontal 00
y=load ('APO1_Pedernales00.txt')/981;
x=0:0.01:.01*(length(y)-1);
i=1;
while abs(y(i))<0.05
i=i+1;
end
t1=x(i)
n=length(y);
while abs(y(n))<0.05
n=n-1;
end
t2=x(n)
Valores (seg)
t1 = 8.5500
t2 = 35.7100
t = 27.1600
Direccin Horizontal 90
y=load ('APO1_Pedernales90.txt')/981;
x=0:0.01:.01*(length(y)-1);
i=1;
while abs(y(i))<0.05
i=i+1;
end
t1=x(i)
n=length(y);
while abs(y(n))<0.05
n=n-1;
end
t2=x(n)
Valores (seg)
t1 = 8.2000
t2 = 34.9000
t = 26.7000
Direccin Horizontal 00
y=load ('APO1_Pedernales00.txt')/981;
x=0:0.01:.01*(length(y)-1);
%c)
i=1;
while abs(y(i))<0.10
i=i+1;
end
t1=x(i)
n=length(y);
while abs(y(n))<0.10
n=n-1;
end
t2=x(n)
Direccin Horizontal 90
y=load ('APO1_Pedernales90.txt')/981;
x=0:0.01:.01*(length(y)-1);
%c)
i=1;
while abs(y(i))<0.10
i=i+1;
end
t1=x(i)
n=length(y);
while abs(y(n))<0.10
n=n-1;
end
t2=x(n)
Direccin Horizontal 00
y=load ('APO1_Pedernales00.txt');
x=0:0.01:.01*(length(y)-1);
xi=0.01;
Io=I(length(y))
I(1)=0;
for i=2:length(y)
I(i)=I(i-1)+(xi*(y(i))^2)/Io;
end
plot(x,I,'linewidth',1,'color',[.3 .8 0.1])
title('Duracin Acumulada','fontsize',22,'color','r')
xlabel('t(seg)')
ylabel('Intensidad (Io)')
grid on
Io=1.7171e+05
Direccin Horizontal 90
y=load ('APO1_Pedernales90.txt');
x=0:0.01:.01*(length(y)-1);
xi=0.01;
Io=I(length(y))
I(1)=0;
for i=2:length(y)
I(i)=I(i-1)+(xi*(y(i))^2)/Io;
end
plot(x,I,'linewidth',1,'color',[.3 .8 0.1])
title('Duracin Acumulada','fontsize',22,'color','r')
xlabel('t(seg)')
ylabel('Intensidad (Io)')
grid on
Io= 2.0011e+05
Direccin Horizontal 00
y=load ('APO1_Pedernales00.txt');
x=0:0.01:.01*(length(y)-1);
xi=0.01;
I(1)=0;
for i=2:length(y)
I(i)=I(i-1)+(xi*(y(i))^2);
End
Io=I(length(y))
%t90
i=1;
while I(i)<0.05*I(end)
i=i+1;
end
t05=x(i);
i05=I(i);
A05=y(i)/981;
j=1;
while I(j)<0.95*I(end)
j=j+1;
end
t95=x(j);
i95=I(j);
A95=y(j)/981;
T90=t95-t05;
I90=i95-i05;
%t95
h=1;
while I(h)<0.025*I(end)
h=h+1;
end
t025=x(h);
i025=I(h);
A025=y(h)/981;
k=1;
while I(k)<0.975*I(end)
k=k+1;
end
t975=x(k);
i975=I(k);
A975=y(k)/981;
T95=t975-t025;
I95=i975-i025;
Registro00=table([T90;T95],[I90;I95],[A05;A025],
[A95;A975],'VariableNames', {'T' 'I' 'A1' 'A2'}, 'RowNames', {'90%'
'95%'})
Io = 1.7171e+05
Registro00 =
T I A1 A2
_____ __________ _________ _________
Direccin Horizontal 90
y=load ('APO1_Pedernales90.txt');
x=0:0.01:.01*(length(y)-1);
xi=0.01;
I(1)=0;
for i=2:length(y)
I(i)=I(i-1)+(xi*(y(i))^2);
End
Io=I(length(y))
%t90
i=1;
while I(i)<0.05*I(end)
i=i+1;
end
t05=x(i);
i05=I(i);
A05=y(i)/981;
j=1;
while I(j)<0.95*I(end)
j=j+1;
end
t95=x(j);
i95=I(j);
A95=y(j)/981;
T90=t95-t05;
I90=i95-i05;
%t95
h=1;
while I(h)<0.025*I(end)
h=h+1;
end
t025=x(h);
i025=I(h);
A025=y(h)/981;
k=1;
while I(k)<0.975*I(end)
k=k+1;
end
t975=x(k);
i975=I(k);
A975=y(k)/981;
T95=t975-t025;
I95=i975-i025;
Registro00=table([T90;T95],[I90;I95],[A05;A025],
[A95;A975],'VariableNames', {'T' 'I' 'A1' 'A2'}, 'RowNames', {'90%'
'95%'})
Io = 2.0011e+05
Registro90 =
T I A1 A2
_____ __________ _________ ________