您的範圍超出了索引範圍,必須介於1和num-points之間。
%例如:
rand('state ',0);
x =蘭特(1,10);
y =蘭特(1,10);
TRI = delaunay(x,y);
支線劇情(1,2,1),...
三點(三點,x,y)
軸([0 1 0 1]);
堅持住;
plot(x,y,'或');
[vx,vy] = voronoi(x,y,TRI);
支線劇情(1,2,2),...
plot(x,y,' r+',vx,vy,' b-'),...
坐標軸([0 1 0 1])