Hi;
How can I save a file in a folder with a .FIG and .PNG extension in Matlab?
Actually I want to save the file in a folder by writing a Matlab code.
Regards,

답변 (2개)

MD RAQUIBUZZAMAN
MD RAQUIBUZZAMAN 2019년 2월 20일

0 개 추천

f=plot(x,y);
saveas(f,'name.fig')
or you can directly use
savefig('name.fig')

댓글 수: 1

SEVAL DONERTAS
SEVAL DONERTAS 2019년 2월 20일
Hi,
Thank you very much..
When I use this script; the file is saved. But axes labels, title and legend are disappeared. I am attaching my code and a txt file. What can be the problem?
Regards,

댓글을 달려면 로그인하십시오.

MD RAQUIBUZZAMAN
MD RAQUIBUZZAMAN 2019년 2월 20일

0 개 추천

when you open the saved file, you need to use 'openfig' or open name.fig. It will load all the text and the legends.

댓글 수: 1

SEVAL DONERTAS
SEVAL DONERTAS 2019년 2월 22일
Hi,
I have tried but I could not execute correctly.. Could you please write the code a bit more clearly?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

질문:

2019년 2월 20일

댓글:

2019년 2월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by