%x = rand(1,40);
%y = rand(1,40);
x=[0.95013      0.23114      0.60684      0.48598       0.8913       0.7621...
   0.45647     0.018504      0.82141       0.4447      0.61543      0.79194...
   0.92181      0.73821      0.17627      0.40571      0.93547       0.9169...
   0.41027      0.89365     0.057891      0.35287      0.81317    0.0098613...
   0.13889      0.20277      0.19872      0.60379      0.27219      0.19881...
   0.015274      0.74679       0.4451      0.93181      0.46599      0.41865...
   0.84622      0.52515      0.20265      0.67214];
y=[0.83812      0.01964      0.68128      0.37948       0.8318      0.50281...
   0.70947      0.42889      0.30462      0.18965      0.19343      0.68222...
   0.30276      0.54167      0.15087       0.6979      0.37837      0.86001...
   0.85366      0.59356      0.49655      0.89977      0.82163      0.64491...
   0.81797      0.66023      0.34197      0.28973      0.34119      0.53408...
   0.72711      0.30929       0.8385      0.56807      0.37041      0.70274...
   0.54657      0.44488      0.69457      0.62131];
z = peaks(x,y*pi);
t = delaunay(x,y);
voronoi(x,y,t)
title('Figure 26.18: Voronoi Plot')