神瑛 发表于 2011-1-3 19:21:57

学习《MATLAB语言在建筑抗震工程中应用》时程分析例子遇到问题

>> clear
>> %%main program for elastic time-history analysis method%%
%wilson方法的增量法%

h=;
m=*1e+3;
k0=*1e+5;
cn=length(m);
ct=1.4;
dt=0.02;
load dzhbo.dat
xs=200/max(abs(dzhbo));
ag=dzhbo*0.01*xs;
ndzh=400;
ag1=ag(1:ndzh);
ag2=ag(2:ndzh+1);
agtao=ct*(ag2-ag1);

chsh=zeros(cn,1);
wyi1=chsh;
sdu1=chsh;
jsdu1=chsh;
wyimt=chsh;
sdumt=chsh;
jsdumt=chsh;
unit=ones(cn,1);
m=diag(m);
=matrixju(k0,cn);
??? Undefined function or method 'matrixju' for input arguments of type 'double'.

神瑛 发表于 2011-1-3 20:06:52

嗯,解决了,忘了把子程序放到工作目录了!

xzning123 发表于 2012-4-2 14:47:51

楼主,能否讲解一下该书中的弹塑性的例子?鄙人有点儿看不懂,谢谢
页: [1]
查看完整版本: 学习《MATLAB语言在建筑抗震工程中应用》时程分析例子遇到问题