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?

 Réponse acceptée

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

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by