下个mpt工具箱 里面的mpt_voronoi可以实现你的要求 MPT_VORONOI Computes the voronoi diagram via mpLP [Pn]=mpt_voronoi(points,Options) --------------------------------------------------------------------------- DESCRIPTION --------------------------------------------------------------------------- The voronoi diagram is a partition of the state space; For a given set of points pj,each region Pn(j) is defined as Pn(j)={x in R^n | d(x,pj)