disp(' ')
disp(' srs.m ver 2.0 July 3, 2006')
disp(' by Tom Irvine Email: tomirvine@')
disp(' ')
disp(' This program calculates the shock response spectrum')
disp(' of an acceleration time history, which is pre-loaded into Matlab.')
disp(' The time history must have two columns: time(sec) & acceleration')
disp(' ')
%
clear t;
clear y;
clear yy;
clear n;
clear fn;
clear a1;
clear a2
clear b1;
clear b2;
clear jnum;
clear THM;
clear resp;
clear x_pos;
clear x_neg;
%
iunit=input(' Enter acceleration unit: 1= G 2= m/sec^2 ');
%
disp(' ')
disp(' Select file input method ');
disp(' 1=external ASCII file ');
disp(' 2=file preloaded into Matlab ');
file_choice = input('');
%
if(file_choice==1)
[fil
MATLAB冲击响应谱计算程序详解

该博客介绍了如何使用MATLAB计算冲击响应谱,程序首先清除了变量,然后要求用户输入加速度单位和数据输入方式。根据用户选择,程序读取外部ASCII文件或预加载到MATLAB中的文件。接着,它处理时间历史数据并计算相关频率、阻尼比等参数。用户可以选择不同的算法(Kelly-Richman或Smallwood)来计算冲击响应。
最低0.47元/天 解锁文章
2128

被折叠的 条评论
为什么被折叠?



