Borrar filtros
Borrar filtros

I want to calculate the area of a polygonal Voronoi figure

4 visualizaciones (últimos 30 días)
daivt soul
daivt soul el 21 de Mayo de 2018
Respondida: jahanzaib ahmad el 22 de Nov. de 2018
I want to calculate the area of a polygonal Voronoi figure.
How do I code the code?
https://jp.mathworks.com/help/matlab/math/voronoi-diagrams.html https://jp.mathworks.com/help/matlab/ref/polyarea.html

Respuestas (2)

KSSV
KSSV el 21 de Mayo de 2018
You will be having vertices of each cell......use polyarea for the cell to get area.
  1 comentario
jahanzaib ahmad
jahanzaib ahmad el 22 de Nov. de 2018
but there is a problem with the vertices .. first x and y are "Inf " .

Iniciar sesión para comentar.


jahanzaib ahmad
jahanzaib ahmad el 22 de Nov. de 2018
u can try this
there area r regions .
sumAREAA=0;
for k=1:length(r)
rk=r{k};
XP = rk(:,1:2:end);
YP = rk(:,2:2:end);
AREAA = polyarea(XP,YP);
sumAREAA=sumAREAA+AREAA;
disp(AREAA);
end
disp(sumAREAA)

Categorías

Más información sobre Voronoi Diagram en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by