MATLAB Function Reference    
voronoin

n-D Voronoi diagram

Syntax

Description

[V, C] = voronoin(X) returns Voronoi vertices V and the Voronoi cells C of the Voronoi diagram of X. V is a numv-by-n array of the numv Voronoi vertices in n-D space, each row corresponds to a Voronoi vertex. C is a vector cell array where each element contains the indices into V of the vertices of the corresponding Voronoi cell. X is an m-by-n array, representing m n-D points.

Example

Let

then [V,C] = voronoin(x) generates

and

In particular, the fifth Voronoi cell consists of 4 points: V(10,:), V(5,:), V(6,:), V(8,:).

See Also

convhulln, delaunayn, voronoi

Reference

[1]  National Science and Technology Research Center for Computation and Visualization of Geometric Structures (The Geometry Center), University of Minnesota. 1993.


 voronoi waitbar