Azzera filtri
Azzera filtri

I want to calculate the area of a polygonal Voronoi figure

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (2)

KSSV
KSSV il 21 Mag 2018
You will be having vertices of each cell......use polyarea for the cell to get area.

jahanzaib ahmad
jahanzaib ahmad il 22 Nov 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)

Categorie

Scopri di più su Voronoi Diagram in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by