when save figure matalb, i'd resulting image have high resolution can zoom in see detail in image. when use 'file --> save as' on figure, image not high resolution.
how can save figure high resolution image in matlab?
you can specify desired resolution save image, either command line or file menu.
command line: using print
, include option -r###
, ###
if resolution want. 300 dots-per-inch (dpi) plenty high enough resolution purposes, feel free go higher if needed. higher dpi larger image file size be.
print(gcf,'foo.png','-dpng','-r300'); *// 300 dpi
check out matlab print documentation see print options can adjust this.
file menu: or using 'file -> export setup...', on left select 'rendering', adjust 'resolution (dpi)'. default set 'auto'.
as command line, there many printing options can adjust in file menu. once you've tinkered little bit , gotten how want it, can save current export settings default don't have every time save figure. done on bottom of same menu 'export styles --> save style named:' --> choose "default" , click 'save'.
here more tips saving nice figures in matlab:
Comments
Post a Comment