フィルターのクリア

display voronoi diagram with multi-robot environment

2 ビュー (過去 30 日間)
Noam Chen
Noam Chen 2020 年 12 月 8 日
回答済み: David Hill 2020 年 12 月 8 日
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 Center および File ExchangeVoronoi Diagram についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by