时域积分:地震加速度时程曲线转化为速度,位移时程曲线
采用梯形积分法,可得到速度和位移时程曲线%%%test%%%fid = fopen(‘Acc1.AT2’); %%导入加速度数据;Acc = textscan(fid,’%f’,‘headerlines’,4);Acc = Acc{1,1};fclose(fid);dt = 0.01; %采样间距t = 0:dt:(length(Acc)-1)dt;vn1 = cumtrapz(t, Acc); %梯形积分法vn = vn1 - repmat(mean(vn1), size(vn1,1)
原创
2020-11-24 22:54:57 ·
8838 阅读 ·
3 评论