[V,R] =
voronoiDiagram(DT) returns the Voronoi
vertices, 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.

Voronoi vertices, returned as a matrix. Each row of V contains
the coordinates of a Voronoi vertex.

R

Voronoi regions, returned as a vector cell array the same length
as DT.Points. The elements of R are
row numbers of V. The coordinates of the Voronoi
vertices bounding a region are V(R{j},:). The Voronoi
region associated with the point DT.Points(j) is R{j}.