Arbitrary Square Bounded Voronoi Diagram

Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square
1.6K Downloads
Updated 10 Feb 2011

View License

This function compute the individual Voronoi cell area of point sets bounded in an arbitrary square.

Inputs:
x : M x 1 array of x-coordinates
y : M x 1 array of y-coordinates
toggleplot : 1 to turn on figures, 0 to turn off figures;
[x1,x2,y1,y2] : 1 x 4 array of square edges

Outputs:
CellArea : M x 1 array of Voronoi cell area bounded in an arbitrary square

Usage:
CellArea=SquareBV(x,y,toggleplot,[x1,x2,y1,y2])
CellArea=SquareBV(x,y,toggleplot)

Cite As

Meng Sang Ong (2026). Arbitrary Square Bounded Voronoi Diagram (https://www.mathworks.com/matlabcentral/fileexchange/30353-arbitrary-square-bounded-voronoi-diagram), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Voronoi Diagram in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0