Borrar filtros
Borrar filtros

Saving a figure in GUI

4 visualizaciones (últimos 30 días)
Subhiksha
Subhiksha el 3 de Sept. de 2013
On executing some GUI code i am getting a figure.If the user closes the image he/she is asked whether he/she needs to save the image. if the user answers as yes i should save the image in user selected location.How to do this.
Please help
Thanks in advance

Respuestas (1)

ES
ES el 3 de Sept. de 2013
get the handle of the figure and do a saveas call.
eg: saveas(h,'filename','format')
format can be any image format or pdf etc.

Categorías

Más información sobre Environment and Settings 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