MATLAB: How to set dpi of 300 of tiff image in matlab

image processingimage resolutionMATLABtif file

Hi every one; I have a tiff image which i have created in paint. I do not know its dpi value but i want to set its dpi value tp 300 , Please guide me whether matlab can set its dpi value to 300 or not?? I am asking about some kind of code which resolve my problem Thanks in advance

Best Answer

imwrite(TheImage, 'filename.tif', 'Resolution', 300)