Code covered by the BSD License  

Highlights from
saveAll

saveAll

by

 

Saves all the open figures in 'eps' format.

saveAll
function saveAll
%   Saves all the open figures in 'eps' format.
%
%   Author        : Damith Senaratne, (http://www.damiths.info)
%   Released date : 12th August 2011 

h = get(0,'CurrentFigure');
count = 1;
while ~isempty(h)
    fname = [get(h,'Name') sprintf('(%d)',count) '.eps'];
    saveas(h,fname, 'psc2');
    count = count + 1;
    close(h);
    h = get(0,'CurrentFigure');
end

Contact us