Saving files uniquely when I process a sequence of files

I have found how to run a sequence of files, but if each file has a result how can I save that result uniquely for each file so it is not overwritten by the next file?

 Accepted Answer

Give it a numerical extension (id)
Simple example:
for ii = 1:10
filename = ['Friday_' num2str(ii) '.txt']
end

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!