title: How to draw 2nd order Voronoi diagram in Matlab?
body: <p>The Matlab <a href="http://www.mathworks.com/help/matlab/ref/voronoi.html" rel="nofollow noreferrer">function</a> voronoi(x,y) gives the first order Voronoi diagram for the set of points  $(x,y)$  e.g.</p>
  
  <p><img src="https://i.stack.imgur.com/BSVtZ.png" alt="example"> </p>
  
  <p>Can we use this function to draw a higher order such as 2nd order Voronoi diagram? By the order of a Voronoi diagram means the number of closest points. For example the regular Voronoi diagram is called first order because the cells have a single point that is closest to any place in the cell. A second order Voronoi diagram will have cells which are identified by the two closest points.</p>
  
  <p>This previous question <a href="https://stackoverflow.com/questions/12510575/higher-order-voronoi-diagram">Higher order voronoi diagram</a> discuss a similar problem but not in Matlab.</p>