delaunay
- :
t =delaunay(x, y)¶ - :
t =delaunay(x, y, z)¶ - :
t =delaunay(p)¶ - :
t =delaunay(…, options)¶ Compute the Delaunay triangulation of a 2-D or 3-D point set.
The points are given as coordinate arrays x, y (and z) of identical size, or as the rows of p with two or three columns. The result has one triangle (three point indices) or tetrahedron (four indices) per row. Triangles are listed counter-clockwise. The optional trailing options (a character row or cell array of strings) is passed on to the triangulation library.
Degenerate input (collinear or coplanar points, too few points) and NaN or Inf coordinates are errors.