Hi,
I want to save in a folder mat files with a changing name.
for i=1:length(ID) Filename=[num2cell(ID(i)) '.mat']; save('C:\Users\Documents\MATLAB\TechnicalFinal\Filename','Close') end
I am ending up with a file called Filename.mat instead of 1.mat,2.mat,and 3.mat where 1,2,3 are the ID number in the loop. Is there a way to fix that? Best
Best Answer