洛马普里塔地震分析

2025-11-05 11:16:11

1、从加载数据开始。

load quake 

whos e n v

洛马普里塔地震分析

2、Time = (1/200)*seconds(1:length(e))';

whos Time

洛马普里塔地震分析

3、varNames = {'EastWest', 'NorthSouth', 'Vertical'};

quakeData = timetable(Time, e, n, v, 'VariableNames', varNames);

head(quakeData)

洛马普里塔地震分析

4、plot(quakeData.Time,quakeData.EastWest)

title('East-West Acceleration')

洛马普里塔地震分析

5、quakeData.Variables = 0.098*quakeData.Variables;

6、t1 = seconds(8)*[1;1];

t2 = seconds(15)*[1;1];

hold on 

plot([t1 t2],ylim,'k','LineWidth',2)

hold off

洛马普里塔地震分析

7、tr = timerange(seconds(8),seconds(15));

dataOfInterest = quakeData(tr,:);

head(dataOfInterest)

洛马普里塔地震分析

8、figure

subplot(3,1,1)

plot(dataOfInterest.Time,dataOfInterest.EastWest)

ylabel('East-West')

title('Acceleration')

subplot(3,1,2)

plot(dataOfInterest.Time,dataOfInterest.NorthSouth)

ylabel('North-South')

subplot(3,1,3)

plot(dataOfInterest.Time,dataOfInterest.Vertical)

ylabel('Vertical')

洛马普里塔地震分析

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢