1、在命令行窗口,输入命令:
% Construct a Delaunay triangulation from
% 10 random points within a unit square
x = rand(10,1);
y = rand(10,1);
dt = delaunayTriangulation(x,y)
按“Enter”键。
如图1所示。

2、在命令行窗口,输入命令:
% Insert 5 additional random points
dt.Points(end+(1:5),:) = rand(5,2)
按“Enter”键。
如图2所示。

3、取代第五点
在命令行窗口,输入命令:
dt.Points(5,:) = [0, 0]
按“Enter”键。
如图3所示。

4、删除第四点
在命令行窗口,输入命令:
ddt.Points(4,:) = []
按“Enter”键。
如图4所示。
