- resolution — Resolutionstring containing -r and integerResolution, specified as 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'.
How to save file as 300 dpi png?
74 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Faith McColl
am 9 Jul. 2015
Kommentiert: Star Strider
am 9 Jul. 2015
I am trying to save a figure as a 300 dpi png file. The command print('filename','-dpng','resolution','300') does not work because Matlab is unsure if the name of the file should be "filename" or "resolution". How do I fix this? Is there a better way to control the resolution and file type of images from Matlab?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 9 Jul. 2015
You didn’t say the MATLAB version you’re using, but the R2015a documentation for print under the section for Input Arguments states for ‘resolution’:
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!