필터 지우기
필터 지우기

how to assign the dotes to which Voronoi cell belongs ?

조회 수: 1 (최근 30일)
ali
ali 2016년 6월 26일
답변: Pawel Ladosz 2016년 8월 10일
i want to know how to find that the indexes of dots that locates in each Voronoi cell.
for example (simply)
x=rand(2,6)*10
voronoi(x(1,1:3),x(2,1:3),'*')
hold on
plot(x(2,:),x(1,:),'o')
here there are 3 cells, i want to find which dot inside which cell

답변 (1개)

Pawel Ladosz
Pawel Ladosz 2016년 8월 10일
Hi ali,
did you try voronoin function? It should output positions of vertices (the dot located in each cell).
Thanks,

카테고리

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