Hello u all!
I'm trying to use a for-loop to save my already generated pictures into different files, but I can't figure out how to index those figures:
for i = 1 : 10 filepath = fullfile(source,sprintf('%s.png',figname{i,1})); %%figname is a cell with each figure's name
saveas('??',filepath);%%figures going from f1 - f10
end
Is there a way of doing it or do I have to use SAVEAS after generating each fig?
THX
Best Answer