Problem with saveas function

1 次查看(过去 30 天)
andrea
andrea 2017-6-20
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

回答(1 个)

Stephen Jue
Stephen Jue 2017-6-22
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.

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by