Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2010-04-03, 19:27   #1
那年伊始
初级会员
 
注册日期: 2010-04-03
帖子: 2
声望力: 0
那年伊始 正向着好的方向发展
问题 帮看看程序有什么错,怎么不能生成三维图

function xiachen
c=13*360;
m=3.1;q=0.89;a=8;h=304;v1=0.92;
w0=m*q*1000*cosd(a);r=h/2.25;
t1=30/0.92;
t(4)=330/v1;
p1=1-exp(-c.*t(4));
p2=1-exp(-c.*(t(4)-t1));
p3=1-exp(-c.*(t(4)-2.*t1));
p4=1-exp(-c.*(t(4)-3.*t1));
p5=1-exp(-c.*(t(4)-4.*t1));
p6=1-exp(-c.*(t(4)-5.*t1));
p7=1-exp(-c.*(t(4)-6.*t1));
p8=1-exp(-c.*(t(4)-7.*t1));
p9=1-exp(-c.*(t(4)-8.*t1));
p10=1-exp(-c.*(t(4)-9.*t1));
p11=1-exp(-c.*(t(4)-10.*t1));
x=-300:30:700;
y=-200:30:500;
[X,Y]=meshgrid(x,y);
Z=-w0./4.*(erf((sqrt(pi)./r).*Y)-erf((sqrt(pi)./r).*(Y-124))).*(p1.*(erf((sqrt(pi)./r).*X)-erf((sqrt(pi)./r)*(X-v1.*t1)))+...
p2.*(erf((sqrt(pi)./r).*(X-v1.*t1))-erf((sqrt(pi)./r).*(X-2*v1.*t1)))+...
p3.*(erf((sqrt(pi)./r).*(X-2*v1.*t1))-erf((sqrt(pi)./r)*(X-3*v1.*t1)))+...
p4.*(erf((sqrt(pi)./r).*(X-3.*v1.*t1))-erf((sqrt(pi)./r)*(X-4.*v1.*t1)))+...
p5.*(erf((sqrt(pi)./r).*(X-4.*v1.*t1))-erf((sqrt(pi)./r)*(X-5.*v1.*t1)))+...
p6.*(erf((sqrt(pi)./r).*(X-5.*v1.*t1))-erf((sqrt(pi)./r)*(X-6.*v1.*t1)))+...
p7.*(erf((sqrt(pi)./r).*(X-6.*v1.*t1))-erf((sqrt(pi)./r)*(X-7.*v1.*t1)))+...
p8.*(erf((sqrt(pi)./r).*(X-7.*v1.*t1))-erf((sqrt(pi)./r)*(X-8.*v1.*t1)))+...
p9.*(erf((sqrt(pi)./r).*(X-8.*v1.*t1))-erf((sqrt(pi)./r)*(X-9.*v1.*t1)))+...
p10.*(erf((sqrt(pi)./r).*(X-9.*v1.*t1))-erf((sqrt(pi)./r)*(X-10.*v1.*t1)))+...
p11.*(erf((sqrt(pi)./r).*(X-10.*v1.*t1))-erf((sqrt(pi)./r)*(X-11.*v1.*t1))));;
surf(X,X,Z);
shading interp;
xlabel('走向方向(m)');
ylabel('倾向方向(m)');
zlabel('下沉(mm)');
那年伊始 当前离线   回复时引用此帖
旧 2010-04-04, 07:20   #2
那年伊始
初级会员
 
注册日期: 2010-04-03
帖子: 2
声望力: 0
那年伊始 正向着好的方向发展
难过 回复: 帮看看程序有什么错,怎么不能生成三维图

各位大虾,怎么没人回答啊
那年伊始 当前离线   回复时引用此帖
回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 13:39


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.