Can 'export Figure' be written in command without clicking figure settings by hands ?

1 回表示 (過去 30 日間)
I'm saving figures by using 'File -> export setup'. Here I can set the figure 'height and width', and then 'dpi'.
I have lots of figures to save.
Is there any command can do the process to set the figure 'height and width', and then 'dpi' and save the figure ?

採用された回答

wenhao yang
wenhao yang 2021 年 3 月 4 日
I found it.
set(gcf,'unit','centimeters','position',[10 10 25 20]);
print(gcf,'-djpeg','-r600',PATH);
25: height,cm
20: width.cm
-r600: 600 dpi
Thanks for my work. LOL~!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by