fig = gcf; PaperPosition = [232 258 560 420]; %f = figure ('pos', PaperPosition); set(fig,'Position',PaperPosition);