[V,R] =
voronoiDiagram(DT)
[
returns the Voronoi
vertices, V
,R
] =
voronoiDiagram(DT
)V
, and the Voronoi regions, R
,
of the points, DT.Points
.
The Voronoi diagram of a set of points,
such as DT.Points
, decomposes the space around
each point, DT.Points(j,:)
, into a region of influence, R{j}
.
Locations within the region, R{j}
, are closer to
point j
than any other point in DT.Points
.
The region of influence is called the Voronoi region.
The collection of all the Voronoi regions is the Voronoi diagram.
The Voronoi regions associated with points that lie on the convex
hull of DT.Points
are unbounded. Bounding edges
of these regions radiate to infinity. The vertex at infinity is represented
by the first vertex in V
.
 A Delaunay triangulation, see 

Voronoi vertices, returned as a matrix. Each row of 

Voronoi regions, returned as a vector cell array the same length
as 