%% Neighbors of Triangle
% Create a 2-D triangulation using DelaunayTri.

x = rand(10,1);
y = rand(10,1);
dt = DelaunayTri(x,y);

%
% Find the neighbors of the first triangle.

n1 = neighbors(dt,1)

% Copyright 2020 The MathWorks, Inc.