Modyfing the Voronoi function



Hi. I'm a newbie to matlab, and attempting to modify the Voronoi function
that I'll attach at the end of this post. The function, given a set of (x,y)
centroids on a plane, tesselates the plane with arbitrary polygons which are
built around the centroids. The function, though, outputs polygons with 3 or
more vertices each - I should modify it so that the minimum acceptable
number of vertices is 5 (or, even better, a parametrical minimum)

the function:

http://pay.lalista.org/voronoi.m
http://pay.lalista.org/delaunay.m (used by voronoi.m)

Thanks in advance for any hint or help,

- andrea




.