error saving figure as .tiff

3 visualizzazioni (ultimi 30 giorni)
Antonino
Antonino il 3 Mar 2024
Commentato: Antonino il 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

Risposta accettata

Austin M. Weber
Austin M. Weber il 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 Commento
Antonino
Antonino il 4 Mar 2024
It seems to work, thank you very much.
Antonino

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by