필터 지우기
필터 지우기

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?

채택된 답변

Andrew Newell
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 CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by