MATLAB: Saving the plot: how to set the size of the saved plot

MATLABplot

When I save the plot, the default will be that the plot will be saved in a square. But I would like to save the plot in a different format. For example, I would like to save the plot so that it would fit to the half of the powerpoint slides. Please advise how to proceed.

Best Answer

%%figure size
x0=1;
y0=1;
width=1400 ;
height=850 ;
set(gcf,'units','points','position',[x0,y0,width,height],'color','w')
As you want dimensions in inches...you explore the set option..you can mention units in there.