www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/DetermineWhetherVerticesareconnectedbyanEdgein3DExample.m
%% Determine Whether Vertices are connected by an Edge in 3-D %% X = gallery('uniformdata',[10,3],0); DT = delaunayTriangulation(X); %% % Determine whether vertices |2| and |7| are connected by an edge. E = [2 7]; isConnected(DT,E) %% % The vertices are connected by an edge.