MATLAB: Resolution requirements 300-600 dpi..

dpifigureresolution

Hi Everybody,
My publisher wants dpi between 300-600 dpi, and the height cannot exceed 230mm (~860 pixels). When I "save as" my MATLAB figure to ".tif" or ".tif (no compression)" . Everything seems fine, however, only the horizontal and vertical resolution is not the one that I want, (is ~ 116dpi). So, when I change resolution to 300 or even 600 dpi the height of figure exceeds 230mm.
Do you have any idea how to fix it?
I appreciate your help,

Best Answer

|Refer to the example code below.
x=(1:2:10)
y=(1:2:10)
plot(x,y)
size = [200 200];
res = 300;
set(gcf,'paperunits','inches','paperposition',[0 0 size/res]);
print('resized.tiff','-dtiff',['-r' num2str(res)]);
Here I have set the width and height to be 200. Resolution is set to 300dpi. To set the properties(“paperunnits” and “paperposition”) of the image, you could use the “set” function. “print” function is used to set the resolution to 300dpi.|