Save figure as jpg with 600dpi
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nikolas Spiliopoulos
il 4 Set 2019
Commentato: Walter Roberson
il 10 Nov 2024
Hi all,
I am trying to save some figures through coding, in jpg format and 600dpi.
Hovewer I have tried these, but still getting error (Matlab version 2019a)
saveas('figure.jpg')
print(gcf,'figure.jpg','-jpg','-r600');
thanks in advance
1 Commento
Risposta accettata
Jan
il 4 Set 2019
Modificato: Jan
il 4 Set 2019
saveas('figure.jpg')
The first input must be the handle of a figure.
print(gcf, 'figure.jpg', '-jpg', '-r600');
There is no '-jpeg' option for the print command. Do you mean '-djpeg' ?
5 Commenti
Walter Roberson
il 10 Nov 2024
The "-d" prefix stands for "device". The output is to be sent to the JPG "device"
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Environment and Settings 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!