www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/EdgeAttachmentsin2DDelaunayTriangulationExample.m
%% Edge Attachments in 2-D Delaunay Triangulation %% % Create a Delaunay triangulation. x = [0 1 1 0 0.5]'; y = [0 0 1 1 0.5]'; DT = delaunayTriangulation(x,y); %% % Find the triangles attached to edge |(1,5)|. ti = edgeAttachments(DT,1,5); ti{:}