| Partial Differential Equation Toolbox™ | ![]() |
pdesurf(p,t,u)
pdesurf(p,t,u) plots a 3-D surface of PDE node or triangle data. If u is a column vector, node data is assumed, and continuous style and interpolated shading are used. If u is a row vector, triangle data is assumed, and discontinuous style and flat shading are used.
h=pdesurf(p,t,u) additionally returns handles to the drawn axes objects.
For node data, this command is just shorthand for the call
pdeplot(p,[],t,'xydata',u,'xystyle','interp',...
'zdata',u,'zstyle','continuous',...
'colorbar','off'); and for triangle data it is
pdeplot(p,[],t,'xydata',u,'xystyle','flat',...
'zdata',u,'zstyle','discontinuous',...
'colorbar','off'); If you want to have more control over your surface plot, use pdeplot instead of pdesurf.
Surface plot of the solution to the equation -Δu = 1 over the geometry defined by the L-shaped membrane.
Use Dirichlet boundary conditions u = 0 on
.
[p,e,t]=initmesh('lshapeg');
[p,e,t]=refinemesh('lshapeg',p,e,t);
u=assempde('lshapeb',p,e,t,1,0,1);
pdesurf(p,t,u) | pdecont | Partial Differential Equation Toolbox™ |
| pdemesh | Partial Differential Equation Toolbox |
| pdeplot | Partial Differential Equation Toolbox |
![]() | pdesmech | pdetool | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |