Effacer les filtres
Effacer les filtres

Problem with saveas function

1 vue (au cours des 30 derniers jours)
andrea
andrea le 20 Juin 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

Réponses (1)

Stephen Jue
Stephen Jue le 22 Juin 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.

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by