meshz

Draws a wireframe surface with a curtain around its edges.

Category: Graphics > 2-D and 3-D Plots

Syntax

meshz(Z)

Plots the mesh of Z with vertical lines dropping from the edges to the base.

meshz(X, Y, Z)

Uses the coordinates X and Y.

h = meshz(___)

Also returns the surface handle.

Description

The curtain is drawn down to the minimum height of the data, which frames the surface and makes its outline easy to see. Apart from that, meshz is mesh.

Input arguments

X, Y, Z
Coordinates and heights, as for mesh.

Output arguments

h
Handle to the surface object.

Example

Mesh with a curtain

[X, Y, Z] = peaks(20);
meshz(X, Y, Z)

In the app, the figure is drawn below the code.

See also

mesh meshc surf waterfall