请教个问题
本人做毕业设计 有个程序看的不太懂问问高手就是这里<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>'')<BR>setuprop(pde_fig,'currparam',...<BR>['1.0';...<BR>'0'])<BR>请教下这一小段是什么意思啊?<BR>完整的程序在下面 是解一个偏微分方程的<BR>function pdemodel<BR>=pdeinit;<BR>pdetool('appl_cb',5);<BR>set(ax,'DataAspectRatio',);<BR>set(ax,'PlotBoxAspectRatio',);<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>'')<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',);<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')<BR>
页:
[1]