How do I get MATLAB to do overlapping plots, ie. not erase the old plot when adding to it?
1 回表示 (過去 30 日間)
古いコメントを表示
I'm creating a GUI that gets a 'robot' to map out an area, so I need the robot to draw a circle at every different time step to track where it's been.
Is there any way that I can have all these plots overlap without having them on the same plot line? In other words, is a way for the plot function to not erase what was just on the plot screen?
0 件のコメント
採用された回答
Andrew Newell
2011 年 6 月 14 日
Assuming you are not creating new axes each time ( e.g., using subplot) try
hold on
after creating the initial figure.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!