How to select figure by name?
Mostrar comentarios más antiguos
So I have a couple of figures open. Each has its uniqe name. I want to plot a line on one of them. How to select figure by his name?
Thanks.
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 12 de Mzo. de 2020
My approach would be to create the figure names when you create the corresponding figure.
fred = figure;
barney = figure;
Now you can go back to either figure when you need to do so. This just requires you to save those figure handles. In order to wake up fred, just do so by calling figure as needed.
figure(fred)
You might be more creative than was I in naming the figures, but you should get the idea.
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!