Function Reference
— Function File: trimesh (tri, x, y, z)
— Function File: h = trimesh (...)

Plot a triangular mesh in 3D. The variable tri is the triangular meshing of the points (x, y) which is returned from delaunay. The variable z is value at the point (x, y). The output argument h is the graphic handle to the plot.

See also: triplot delaunay3

Demonstration 1

The following code

 rand ('state', 10)
 x = 3 - 6 * rand (1, 50);
 y = 3 - 6 * rand (1, 50);
 z = peaks (x, y);
 tri = delaunay (x, y);
 trimesh (tri, x, y, z);

Produces the following figure