www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/TwoDimensionalDelaunayTriangulationExample.m

    %% 2-D Delaunay Triangulation  
% Create a 2-D |delaunayTriangulation| for 30 random points.   

% Copyright 2015 The MathWorks, Inc.


%%  
P = gallery('uniformdata',[30 2],0);
DT = delaunayTriangulation(P)  

%% 
% Plot the triangulation. 
figure
triplot(DT)