필터 지우기
필터 지우기

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 CenterFile Exchange에서 Voronoi Diagram에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by