Plot a triangular mesh in 2D. The variable tri is the triangular meshing of the points
(x,y)which is returned fromdelaunay. If given, the linespec determines the properties to use for the lines. The output argument h is the graphic handle to the plot.
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
![]() |