Function Reference
— Function File: triplot (tri, x, y)
— Function File: triplot (tri, x, y, linespec)
— Function File: h = triplot (...)

Plot a triangular mesh in 2D. The variable tri is the triangular meshing of the points (x, y) which is returned from delaunay. If given, the linespec determines the properties to use for the lines. The output argument h is the graphic handle to the plot.

See also: plot trimesh delaunay

Demonstration 1

The following code

 rand ('state', 2)
 x = rand (20, 1);
 y = rand (20, 1);
 tri = delaunay (x, y);
 triplot (tri, x, y);

Produces the following figure