How to go back to the previous figure to edit?

74 visualizaciones (últimos 30 días)
SC
SC el 2 de Abr. de 2019
Respondida: Walter Roberson el 2 de Abr. de 2019
Hi,
I have figures fh1 and fh2. I want to create fh1 first, and then create fh2, but after that to go back to edit fh1. How can I do that?
I tried below code, but it doesn't work (it modied fh2 instead of fh1).
Many thanks!
fh1=figure();
title('001')
fh2=figure();
title('002')
getimage(fh1);
title('003')

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Abr. de 2019
figure(fh1)
will make fh1 the active figure again.
However there are lot of different ways to accidentally lose focus. I suggest you read https://www.mathworks.com/matlabcentral/answers/317181-non-deterministic-behavior-with-multiple-figures#answer_247493

Más respuestas (0)

Categorías

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

Productos


Versión

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by