How to save our figures in tiff no compression using exportgraphics

29 ビュー (過去 30 日間)
Erfan Basiri
Erfan Basiri 2022 年 7 月 25 日
編集済み: Erfan Basiri 2022 年 7 月 28 日
I'm seeking a way to save my figures using tiff no compression when using exportgraphics. For instance a sample code is put below. More clearly, what should be written instead of .tiff to make it tiff no compression.
Many thanks
figure
subplot(2,1,1)
hold on
plot(Vz)
subplot(2,1,2)
hold on
plot(Vref)
exportgraphics(gcf,'E1.tiff','Resolution',600)

採用された回答

Richard Quist
Richard Quist 2022 年 7 月 27 日
Specifying tiff compression isn't an option in exportgraphics, but you can generate uncompressed TIFF files using the print command with the -dtiffn option. However, unlike exportgraphics, the print command won't tightly crop the image so you may get more "whitespace" around your plots.
print(gcf, '-dtiffn', '-r600', 'output.tif'):
  1 件のコメント
Erfan Basiri
Erfan Basiri 2022 年 7 月 28 日
編集済み: Erfan Basiri 2022 年 7 月 28 日
Many thanks for the detailed answer.

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

その他の回答 (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