Skip to content

mesh

3D mesh (wireframe) plot.

h = mesh(Z)
h = mesh(X, Y, Z, ...)

Renders a wireframe mesh of the surface — only edges, no filled faces. Lighter visual than surf, useful for showing structure without occluding back-of-surface detail.

mesh(peaks(50))
  • surf — 3D surface plot with colored faces.
  • meshc — Mesh plot with contour lines on the floor.
  • meshz — Mesh plot with curtain (skirt) at the boundary.
  • waterfall — 3D waterfall plot — independent line traces along one dimension.