Can I copy a figure during runing ?

1 visualización (últimos 30 días)
omar th
omar th el 25 de Ag. de 2022
Comentada: Walter Roberson el 26 de Ag. de 2022
I want to copy a figure during running the code But I stopped the running temporary and I want to copy the figure ,, so can I do that ?
  2 comentarios
Rik
Rik el 25 de Ag. de 2022
Do you want to simply capture an image, or do you want a functional copy of a GUI?
omar th
omar th el 25 de Ag. de 2022
actually when I am running the code at some point I paused the code temporarily and take capture or copy for that figure and then pause off and let the code keep excuting

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Ag. de 2022
Yes you can copy a figure during execution. functions such as exportgraphics() or savefig() or copyobj() can be called.
As usual if you saving as an image, drawnow() first.
Also if you are in the middle of configuring graphic objects, you may need to make them visible in order for proper sizing and layout to be done.
  5 comentarios
Image Analyst
Image Analyst el 25 de Ag. de 2022
I don't believe that saves a screenshot. If you want a screenshot saved to an image file on disk you should use saveas or export_fig.
Walter Roberson
Walter Roberson el 26 de Ag. de 2022
"Copy Figure" to clipboard can be coded as
hgexport(gcf, '-clipboard')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by