Printing high resolution figures in Matlab

The code below opens a save-file dialog, sets the paper position mode to automatic (otherwise the layout can get messed up), and prints the figure as a 600 dpi tiff file.
[filename, pathname] = uiputfile( ...
       {'*.tif'}, ...
        'Save as...');
filename = [pathname filename];
set(gcf, 'PaperPositionMode', 'auto');
print( gcf, '-dtiff', '-r600', filename );