Problem with saveas function

2 visualizaciones (últimos 30 días)
andrea
andrea el 20 de Jun. de 2017
Respondida: Stephen Jue el 22 de Jun. de 2017
Hi, I have a couple of questions about the function saveas. If I save an image using the saveas function the image is traslated, on the contrary using the saveas provided by GUI interface the image is correct. Why is the saveas used in the code different from that provided by the GUI? Moreover, why does it seem that the GUI saveas function takes a screenshot??
Thank you in advance. Sincerely, Andrea

Respuestas (1)

Stephen Jue
Stephen Jue el 22 de Jun. de 2017
Hi Andrea,
If I understand correctly, you are using "saveas" on a figure handle to save an image. When you do this, the image is translated. However, when you use the GUI interface (File > Save As...), the image is saved properly. Is this correct?
I am not able to reproduce this behavior. Could you please provide the code you are using to save the figure, and the steps you are taking in the GUI to save it?
Note that by default, "saveas" will save a figure handle as a FIG file. However, the GUI can save a figure as many different types, including JPEG and PNG.

Categorías

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