Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
YAAQOB AL-JAMALI
YAAQOB AL-JAMALI el 29 de En. de 2023
Respondida: dpb el 29 de En. de 2023
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!!!

Respuestas (1)

dpb
dpb el 29 de En. de 2023
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...

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by