早教吧 育儿知识 作业答案 考试题库 百科 知识分享

matlab高手进来看看.form=1:length(l);x=0:0.01:l(m);forn=1:length(x)A=cosh(gama*l(m));B=Zc*sinh(gama*l(m));C=sinh(gama*l(m))./Zc;D=cosh(gama*l(m));An=A+B./Zc;Bn=B;Cn=A./Z1+C+(B./Z1+D)/Zc;Dn=B./Z1+D;Ztr(m)=abs(An*Zp+Bn+(Cn*Zp+Dn)*z0);I(m)=u0./Z

题目详情
matlab高手进来看看.
for m=1:length(l);
x=0:0.01:l(m);
for n=1:length(x)
A=cosh(gama*l(m));
B=Zc*sinh(gama*l(m));
C=sinh(gama*l(m))./Zc;
D=cosh(gama*l(m));
An=A+B./Zc;
Bn=B;
Cn=A./Z1+C+(B./Z1+D)/Zc;
Dn=B./Z1+D;
Ztr(m)=abs(An*Zp+Bn+(Cn*Zp+Dn)*z0);
I(m)=u0./Ztr(m);
end
end
▼优质解答
答案和解析
%程序里面的 l、x、I、Ztr都是矩阵吧,Zc、gama等都是常数吧,这个是先定义好的.for m=1:length(l); %定义外循环次数,length(l)表示l的长度数,表示 循环length(l)次 x=0:0.01:l(m); %定义将0到l中的第m个...