MATLAB Answers

How to save figures while specifying the saving location, extension and resolution?

1 ビュー (過去 30 日間)
Yasmin Samy
Yasmin Samy 2018 年 10 月 11 日
Commented: Yasmin Samy 2018 年 10 月 11 日
Hello, below is the saving section of my code which works fine. However i would like to get figures saved with a higher resolution (any other suggestions are welcome). Adding -r600 (whats the maximum), for example, after the extension doesn`t work. Can someone let me know how to go about it? thanks
FolderName = ('C:\Users\Desktop');
windowname2=strcat(stn,'- stdseasonal');

  0 件のコメント

サインイン to comment.


OCDER 2018 年 10 月 11 日
print(fig2, fullfile(FolderName, windowname2), '-dpng', '-r600')
Use print instead of savefig to save a figure to a specific format and resolution. Read:

  1 件のコメント

サインイン to comment.

More Answers (0)

サインイン してこの質問に回答します。

Translated by