%% 2-D Voronoi Diagram
% Create a matrix of 2-D points and compute the Voronoi vertices and diagram cells.

P = [0.5 0; 0 0.5; -0.5 -0.5; -0.2 -0.1; -0.1 0.1; 0.1 -0.1; 0.1 0.1]
[v,c] = voronoin(P)

% Copyright 2019 The MathWorks, Inc.