Monday, October 7, 2013

Load saved figure and save in fullscreen size

Code
% Load figure
filename =dir;
filename.name
for jj = 3:length(filename)
    this = filename(jj).name;
    hfig=  openfig(this,'reuse');
    set(hfig,'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
     set(hfig,'paperorientation','portrait');

 %     saveas(gcf,[this,'.png'])
% pause
 
end

No comments: