How to do plotting in a different figure for the same environment

I have two figures for the same the environment and I want to do some plotting in the second figuer but it apperas on the first one, the pictures below demonstrate the issue. The plotting for the robot animation appears in Figure 1, as well as the labeling for the axis instead of Figure 2!!!

답변 (1개)

dpb
dpb 2023년 1월 29일

0 개 추천

Save the handles to the axes when they're created and plot into the desired one -- without specifying which, plot functions default to whichever axes is that returned by gca. See the doc for axes and plot...

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

태그

질문:

2023년 1월 29일

답변:

dpb
2023년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by