![]() |
| Script print1_image.m | |||
|
|||
|
%DIFFERENT SIZES AND POSITIONS OF THE IMAGE IN fIGURE
x=imread('owl.png'); image(x) axis off set(gcf,'Menubar','none','Toolbar','none') %image fills all Figure space % set(gca,'position',[0,0,1,1]) %image position is resized and centered set(gca,'position',[0.25,0.25,0.5,0.5]) %image resized and placed at the bottom left corner % set(gca,'position',[0,0,0.4,0.4]) %image is resized and shifted to the top right corner % set(gca,'position',[0.75,0.75,0.25,0.25]) %PRINT IMAGE WITH DEFAULT POSITION AND SIZE set(gcf,'PaperPositionMode','auto') set(gcf,'PaperUnits','centimeters') paper=get(gcf,'PaperPosition') printpreview(gcf) |
|||
| Back | |||