Borrar filtros
Borrar filtros

saving plot figures without opening

1 visualización (últimos 30 días)
Mehmet
Mehmet el 16 de Sept. de 2014
Respondida: Joseph Cheng el 16 de Sept. de 2014
Hello, I would like to save some plot figures withoput displaying them on the screen. I used
set(fig, 'visible','off')
saveas(fig,'file.fig','fig')
set(fig, 'visible','on')
close(fig
But, what it savves is a blank .bmp file.
Does anyone have an idea?

Respuestas (1)

Joseph Cheng
Joseph Cheng el 16 de Sept. de 2014
The saveas, from what i can understand, does a screen capture but since the figure is invisible there isn't anything there. try using the print command to get your bmp.
print (fig, '-dbmp', 'file.bmp')

Categorías

Más información sobre Interactive Control and Callbacks 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