This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Shorthand command for surface plot

This page describes the legacy workflow. Use it when you work with legacy code and do not plan to convert it to use the recommended approach. Otherwise, use pdeplot.




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


and for triangle data it is


If you want to have more control over your surface plot, use pdeplot instead of pdesurf.


collapse all

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); 

See Also

| |

Introduced before R2006a