about saving figure while doing other things

Hi there, I used ' saveas(gcf,'pic_name')' to save my matlab figures, when running my code, I watched movies on computer, to my surprise, the pictures I saved were all those in my movies, so I gave my figure a handle(h = figure), then used ' saveas(h,'pic_name')', but still I got pictures saved in my movies. I wonder how I could save figures in matlab while I was doing something else on my computer? Many thanks!

 Respuesta aceptada

Weiqian Jiang
Weiqian Jiang el 6 de Dic. de 2016

0 votos

Hi there, I've replaced the saveas function with print function, and used 'figure(handle) and print(handle)' instead of 'handle = figure and saveas(handle)', and my problem is solved.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Dic. de 2016

Respondida:

el 6 de Dic. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by