FUNCTION REFERENCE

mesh

3-D mesh (wireframe) surface.

3-D mesh (wireframe) surface.

Syntax

mesh(Z)

Syntax

mesh(Z, C)

Syntax

mesh(X, Y, Z)

Syntax

mesh(X, Y, Z, C)

Syntax

mesh(..., Name, Value)

Syntax

mesh(ax, ...)

Syntax

h = mesh(...)

Same inputs, properties and limits as surf, with mesh defaults: EdgeColor 'flat' (each face's outline in the colormap colour of its first vertex's CData) and FaceColor the axes background colour, so lines behind the mesh are hidden as with MATLAB's hidden on. h.Type is 'surface'; shading changes the EdgeColor of a mesh and keeps its faces.

Example

mesh(peaks(25))

Example

h = mesh(magic(4)); h.EdgeColor   % 'flat'

Example

[X, Y] = meshgrid(1:10); mesh(X, Y, sin(X / 2) .* cos(Y / 3), 'LineWidth', 1)

Differences from MATLAB: the face colour is the background colour when the mesh is drawn (a later change of the axes Color recolours it). hidden off, meshc, meshz and waterfall are not supported yet; EdgeColor 'interp' uses the mean of the four vertex colours of a face.

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