FUNCTION REFERENCE

pdeplot

Plot 2-D PDE mesh data as colour maps, 3-D surfaces, iso-contours, and vector fields.

Plot 2-D PDE mesh data as colour maps, 3-D surfaces, iso-contours, and vector fields.

Syntax

h = pdeplot(model, Name, Value); h = pdeplot(mesh, Name, Value); h = pdeplot(nodes, elements, Name, Value)

Visualizes nodal data on a 2-D triangular mesh from a pde.PDEModel, a pde.FEMesh (such as results.Mesh), or raw (nodes, elements) matrices. Quadratic 6-node triangles are split into 4 linear triangles for drawing. Supported name-value options: 'XYData' (nodal colour vector, colorbar on by default), 'ZData' (nodal height vector with 3-D view), 'ColorBar' ('on'|'off'), 'Contour' ('on'|'off', iso-lines on the P1 triangle split), 'Levels' (positive integer count, default 10, or a level vector), 'Mesh' ('on'|'off'), 'FlowData' (2-by-N or N-by-2 nodal arrows via quiver), 'ColorMap' (name or RGB matrix), 'XYStyle' ('interp'|'flat'|'off'; 'off' draws only the mesh), 'ZStyle' ('continuous'|'discontinuous'|'off'), and 'Title'. Returns a column vector of graphics handles.

Example

R1=[3;4;0;1;1;0;0;0;1;1]; dl=decsg(R1); m=createpde(); geometryFromEdges(m,dl); mesh=generateMesh(m,'Hmax',0.5,'GeometricOrder','linear'); u=mesh.Nodes(1,:)'; h=pdeplot(mesh,'XYData',u,'ColorBar','off'); strcmp(get(h(1),'Type'),'patch')

Differences from MATLAB: 2-D meshes only; legacy (p,e,t) 3-matrix signature, element-wise triangle data, FlowStyle 'arrow'|'cone', and 3-D pdeplot3D are not supported.

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