Problem with saveas function

조회 수: 4 (최근 30일)
andrea
andrea 2017년 6월 20일
답변: Stephen Jue 2017년 6월 22일
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