load seamount
N = 8;
x = rand(N,1);
y = rand(N,1);
z=zeros(N,1);
% Delaunay triangulation
tri = delaunay(x,y)
DT = delaunayTriangulation(x,y)
tri =
1 3 8
1 4 3
1 2 6
2 5 7
6 2 7
1 8 2
3 4 8
8 5 2
DT =
delaunayTriangulation - 属性:
Points: [8×2 double]
ConnectivityList: [8×3 double]
Constraints: []
DT.ConnectivityList
ans =
1 3 8
1 4 3
1 2 6
2 5 7
6 2 7
1 8 2
3 4 8
8 5 2