| Partial Differential Equation Toolbox™ | ![]() |
pdecont(p,t,u) pdecont(p,t,u,n) pdecont(p,t,u,v) h=pdecont(p,t,u) h=pdecont(p,t,u,n) h=pdecont(p,t,u,v)
pdecont(p,t,u) draws 10 level curves of the PDE node or triangle data u. h=pdecont(p,t,u) additionally returns handles to the drawn axes objects.
If u is a column vector, node data is assumed. If u is a row vector, triangle data is assumed. Triangle data is converted to node data using the function pdeprtni.
The geometry of the PDE problem is given by the mesh data p and t. For details on the mesh data representation, see initmesh.
pdecont(p,t,u,n) plots using n levels.
pdecont(p,t,u,v) plots using the levels specified by v.
This command is just shorthand for the call
pdeplot(p,[],t,'xydata',u,'xystyle','off','contour',... 'on','levels',n,'colorbar','off');
If you want to have more control over your contour plot, use pdeplot instead of pdecont.
Plot the contours of the solution to the equation
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);
pdecont(p,t,u)| pdemesh | Partial Differential Equation Toolbox™ |
| pdeplot | Partial Differential Equation Toolbox |
| pdesurf | Partial Differential Equation Toolbox |
![]() | pdecirc | pdeeig | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |