%% 2-D Delaunay Triangulation
% Create a 2-D Delaunay triangulation from a set of ten points.

rng('default')
X = rand([10,2]);
TR = delaunayTriangulation(X);

%
% Find the starting and ending vertex IDs of the edges in the triangulation, and display the first five edges.

E = edges(TR);
E(1:5,:)

% Copyright 2012 The MathWorks, Inc.