声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 803|回复: 2

菜鸟求助!!!!!!!!

[复制链接]
发表于 2006-5-19 11:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
本人做毕业设计   找到个程序  但是有些函数  看不懂  希望大家来帮下   比如pdesetbd pdesetuq  我在帮助中都找不到  并且希望大家帮我讲下各个段落的作用  小弟谢谢拉!!!<BR>function pdemodel<BR>[pde_fig,ax]=pdeinit;<BR>pdetool('appl_cb',5);<BR>set(ax,'DataAspectRatio',[1 0.375 1]);<BR>set(ax,'PlotBoxAspectRatio',[4 2.6666666666666665 2]);<BR>set(ax,'XLim',[-2 2]);<BR>set(ax,'YLim',[-0.5 0.5]);<BR>set(ax,'XTickMode','auto');<BR>set(ax,'YTickMode','auto');<BR><BR>% Geometry description:<BR>pderect([-2 2 -0.5 0.5],'R1');<BR>set(findobj(get(pde_fig,'Children'),'Tag','PDEEval'),'String','R1')<BR><BR>% Boundary conditions:<BR>pdetool('changemode',0)<BR>pdesetbd(4,...<BR>'dir',...<BR>1,...<BR>'1',...<BR>'0')<BR>pdesetbd(3,...<BR>'dir',...<BR>1,...<BR>'1',...<BR>'10')<BR>pdesetbd(2,...<BR>'dir',...<BR>1,...<BR>'1',...<BR>'0')<BR>pdesetbd(1,...<BR>'dir',...<BR>1,...<BR>'1',...<BR>'-10')<BR><BR>% Mesh generation:<BR>setuprop(pde_fig,'Hgrad',1.3);<BR>setuprop(pde_fig,'refinemethod','regular');<BR>pdetool('initmesh')<BR><BR>% PDE coefficients:<BR>pdeseteq(1,...<BR>'1.0',...<BR>'0.0',...<BR>'0',...<BR>'1.0',...<BR>'0:10',...<BR>'0.0',...<BR>'0.0',...<BR>'[0 100]')<BR>setuprop(pde_fig,'currparam',...<BR>['1.0';...<BR>'0  '])<BR><BR>% Solve parameters:<BR>setuprop(pde_fig,'solveparam',...<BR>str2mat('0','1000','10','pdeadworst',...<BR>'0.5','longest','0','1E-4','','fixed','Inf'))<BR><BR>% Plotflags and user data strings:<BR>setuprop(pde_fig,'plotflags',[1 1 1 1 1 1 1 1 0 0 0 1 1 1 0 0 0 1]);<BR>setuprop(pde_fig,'colstring','');<BR>setuprop(pde_fig,'arrowstring','');<BR>setuprop(pde_fig,'deformstring','');<BR>setuprop(pde_fig,'heightstring','');<BR><BR>% Solve PDE:<BR>pdetool('solve')
回复
分享到:

使用道具 举报

发表于 2006-5-20 15:54 | 显示全部楼层

回复:(86700928)菜鸟求助!!!!!!!!

help看不到这几个函数的<BR><BR>你可以在命令窗口输入<BR>doc pdesetbd <BR>doc pdesetuq<BR>就能看到帮助了
 楼主| 发表于 2006-5-21 14:47 | 显示全部楼层
哦  谢谢教授拉   还想问个问题  就是程序里面有个pdeseteq(1,...<BR>'1.0',...<BR>'0.0',...<BR>'0',...<BR>'1.0',...<BR>'0:10',...<BR>'0.0',...<BR>'0.0',...<BR>'[0 100]')<BR>setuprop(pde_fig,'currparam',...<BR>['1.0';...<BR>'0  '])<BR>是什么意思啊?<BR>
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-25 17:19 , Processed in 0.050609 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表