フィルターのクリア

How to find the area of voronoi shapes

2 ビュー (過去 30 日間)
Sean
Sean 2014 年 6 月 25 日
コメント済み: Sean 2014 年 6 月 25 日
clc
clear all
close all
n= 60;
x=720*rand(1,n);
y=360*rand(1,n);
voronoi(x,y)
[vx,vy] =voronoi(x,y);
plot(x,y,'r+',vx,vy,'b-');
axis equal;
With this example of a voronoi diagram, is it possible to find the areas of each respective voronoi shape? If so, how?
  1 件のコメント
Sean
Sean 2014 年 6 月 25 日
figure(2)
for j=1:length(vx(1,:))
line([vx(1,j) vx(2,j)],[vy(1,j) vy(2,j)])
end
axis equal
Outlines the voronoi diagram.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeVoronoi Diagram についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by