FUNCTION REFERENCE

pdemesh

Plot a 2-D PDE mesh with optional node and element labels.

Plot a 2-D PDE mesh with optional node and element labels.

Syntax

pdemesh(model); pdemesh(mesh); pdemesh(nodes, elements); h = pdemesh(..., 'NodeLabels', 'on'|'off', 'ElementLabels', 'on'|'off')

Draws all unique triangle edges into the current axes with equal axis scaling. Quadratic elements draw curved edges smoothly through their midside nodes. Setting 'NodeLabels' or 'ElementLabels' to 'on' adds text objects at node coordinates or element centroids. Returns the line handle when an output argument is requested.

Example

R1=[3;4;0;1;1;0;0;0;1;1]; dl=decsg(R1); m=createpde(); geometryFromEdges(m,dl); generateMesh(m,'Hmax',0.5,'GeometricOrder','linear'); h=pdemesh(m); strcmp(get(h,'Type'),'line')

Differences from MATLAB: 2-D meshes only; 3-D meshes, z-height plots (pdemesh(p,e,t,u)), and FaceAlpha are not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.