If I have used:
set(gcf,'PaperUnits','centimeters','papersize',[10 10])
print('fig_name','-deps','-r300'),
have I saved the figure as 300dpi or 300dpcm?
Cheers!

 採用された回答

OCDER
OCDER 2017 年 9 月 25 日

2 投票

It's DPI, based on the documents provided by MathWorks here: https://www.mathworks.com/help/matlab/ref/print.html#inputarg_resolution
This is what they say:
"Resolution, specified as a character vector or a string containing -r and an integer value indicating the resolution in dots per inch. For example, '-r300' sets the output resolution to 300 dots per inch. To specify screen resolution, use '-r0'."
Doesn't say anything about dpcm, which would make unit conversion confusing actually...
If you want to use dpcm, you'd have to calculate and use the dpi equivalent.

2 件のコメント

Oliver Halliday
Oliver Halliday 2017 年 9 月 25 日
Thanks! Wanted dpi so no need to worry about confusing conversions.
OCDER
OCDER 2017 年 9 月 25 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

タグ

質問済み:

2017 年 9 月 25 日

コメント済み:

2017 年 9 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by