From: Ashish Uthama on
On Thu, 08 Apr 2010 00:31:06 -0300, Dave Stuart <dstuart(a)mines.edu> wrote:

> I would like to calculate the areas of the voronoi polygons generated
> from data. I have used '[V,C] = voronoin(X)' to obtain verticies and
> cells of the voronoi diagram, but I am no sure how to calculate the area
> of the polygons.
> What is the best way to move forward?
>
> Thank You,
>
> Dave

Not too familiar with this:

The first example in 'help voronoi'
X = [0.5 0; 0 0.5; -0.5 -0.5; -0.2 -0.1; -0.1 0.1; 0.1 -0.1; 0.1 0.1]
[V,C] = voronoin(X)
X = V(C{5},:);
K = convhulln(X); %its always convex right?

The help for convhulln

[K,V] = CONVHULLN(...) also returns the volume of the convex hull
in V.

Would this give you area in 2D?
From: Bruno Luong on
"Dave Stuart" <dstuart(a)mines.edu> wrote in message
> I have not yet figured this out. Anybody who has used matlab for vornoi areas before, please feel free to chime in.

http://www.mathworks.com/matlabcentral/newsreader/view_thread/270205

Take a look at the first for-loop of the code at the end of the above thread. That plots the voronoi polygons (accept the unbounded ones); all you guys need is to plug a POLYAREA function call within this loop.

Bruno