www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/VoronoiDiagramBasedOnPointsExample.m
%% Voronoi Diagram Based on Points % This code uses the |voronoi| function to plot the % Voronoi diagram for 10 randomly generated points. % Copyright 2015 The MathWorks, Inc. x = gallery('uniformdata',[1 10],0); y = gallery('uniformdata',[1 10],1); voronoi(x,y)