I found it.
set(gcf,'unit','centimeters','position',[10 10 25 20]);
print(gcf,'-djpeg','-r600',PATH);
25: height,cm
20: width.cm
-r600: 600 dpi
Thanks for my work. LOL~!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!