%% Vertices of Voronoi Edges
% Create two vectors containing the coordinates of ten 2-D points. Compute the vertices of the Voronoi edges, and then plot the Voronoi diagram using the original points and edge coordinates.

x = gallery('uniformdata',[1 10],0);
y = gallery('uniformdata',[1 10],1); 
[vx,vy] = voronoi(x,y);

plot(x,y,'r+',vx,vy,'b-')
axis equal
xlim([min(x) max(x)])
ylim([min(y) max(y)])

% Copyright 2015 The MathWorks, Inc.