以下matlab程序错在哪?clc clear alllamada=0.2;theta=0.7;m=0.4;d=0:0.01:1;r=0:0.01:1;[d,r]=meshgrid(d,r);c=(1-theta+m*d^2/2-m*r^2+lamad*r-lamada*d)/2;A1=(m.^2)*(r.^4)/(16*(1-theta))+m.^2.*d.^4/(16*(1-theta))-m.^2.*d.^2*r.^2/(8*(1-theta))-(3-2*th

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 02:24:55
以下matlab程序错在哪?clcclearalllamada=0.2;theta=0.7;m=0.4;d=0:0.01:1;r=0:0.01:1;[d,r]=meshgrid(d,r);c=(1-t

以下matlab程序错在哪?clc clear alllamada=0.2;theta=0.7;m=0.4;d=0:0.01:1;r=0:0.01:1;[d,r]=meshgrid(d,r);c=(1-theta+m*d^2/2-m*r^2+lamad*r-lamada*d)/2;A1=(m.^2)*(r.^4)/(16*(1-theta))+m.^2.*d.^4/(16*(1-theta))-m.^2.*d.^2*r.^2/(8*(1-theta))-(3-2*th
以下matlab程序错在哪?
clc
clear all
lamada=0.2;
theta=0.7;
m=0.4;
d=0:0.01:1;
r=0:0.01:1;
[d,r]=meshgrid(d,r);
c=(1-theta+m*d^2/2-m*r^2+lamad*r-lamada*d)/2;
A1=(m.^2)*(r.^4)/(16*(1-theta))+m.^2.*d.^4/(16*(1-theta))-m.^2.*d.^2*r.^2/(8*(1-theta))-(3-2*theta)*m*lamada*r.^3/(8*(1-theta));
B1=-(3-2*theta)*m*lamada*d.^3/(8*(1-theta))+(3-2*theta)*m*lamada*r.^2*d/(8*(1-theta))+(3-2*theta)*m*lamada*d.^2*r/(8*(1-theta));
C1=((m*theta-m)/(8*(1-theta))+lamada.^2/2-m/8)*r.^2+((m-m*theta)/(8*(1-theta)+m/8+(1+theta)*lamada.^2/(2*theta)))*d.^2;
D1=-lamada.^2*d*r+(3-2*theta)*lamada*r/4+(lamada/4-lamada*c/theta+theta*lamada/2)*d+c.^2/(2*theta)-c+theta/4+1/4;
f=(1/2)*(A1+B1+C1+D1);
mesh(d,r,f)

以下matlab程序错在哪?clc clear alllamada=0.2;theta=0.7;m=0.4;d=0:0.01:1;r=0:0.01:1;[d,r]=meshgrid(d,r);c=(1-theta+m*d^2/2-m*r^2+lamad*r-lamada*d)/2;A1=(m.^2)*(r.^4)/(16*(1-theta))+m.^2.*d.^4/(16*(1-theta))-m.^2.*d.^2*r.^2/(8*(1-theta))-(3-2*th
c=(1-theta+m*d^2/2-m*r^2+lamad*r-lamada*d)/2;
修改为:
c=(1-theta+m*d^2/2-m*r^2+lamada*r-lamada*d)/2;
Matlab运行时,是可以报错的.你只需要找到报错信息,看相应提示修改程序就可以了.