- #1
PhilippH
- 12
- 0
Hi I have a question, I have to save to file the matrixs generated by an algoritm in Matlab. So i was wondering if is it possibile and how, to use in the filename a variable of the algoritm.
Let's say "i" is the counter of my cicle and i would like to save the matrix generated at every cicle to a file with the name NAMEFILE-i.
i.e.
for i=1:4
a=i;
save file-i a
end
Of course this is not working :-)
Do i need to use a string?
Let's say "i" is the counter of my cicle and i would like to save the matrix generated at every cicle to a file with the name NAMEFILE-i.
i.e.
for i=1:4
a=i;
save file-i a
end
Of course this is not working :-)
Do i need to use a string?