display voronoi diagram with multi-robot environment

2 次查看(过去 30 天)
Hi,
I'm writing an application using the multi-robot environment, I want to display a voronoi diagram using the positions of the robots at each iteration of the simulation loop.
I've tried to use hold on and, but I get the following result:
Is there a way to update the figure at each iteration?

回答(1 个)

David Hill
David Hill 2020-12-8
Try using the clf command between each plot
for
clf;
plot(x,y);
end

类别

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