error saving figure as .tiff

3 views (last 30 days)
Antonino
Antonino on 3 Mar 2024
Commented: Antonino on 4 Mar 2024
Hello, when I try to save a figure with 300 dpi resolution I get the attached error message. Other figures of the same size and resolution contained in another folder are correctly saved as .tiff. Can anyone help me please? Many thanks.
Antonino

Accepted Answer

Austin M. Weber
Austin M. Weber on 4 Mar 2024
If you are using R2020a or later, try using the exportgraphics function:
fig = gcf;
exportgraphics(fig,'myFigure.tiff','Resolution',300) % .tif also works
  1 Comment
Antonino
Antonino on 4 Mar 2024
It seems to work, thank you very much.
Antonino

Sign in to comment.

More Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!