my code would save just the last iteration.
for c=1:170 name1 = strcat(folder_name1,'/',filesStruct1(c).name); alpha = (((double(dicomread(name1)).*pi)./(4096)) - (pi./2)) dicomwrite(alpha, (strcat('Results/',filesStruct1(c).name))); save(mfilename)end
can you please edit my code so it saves alpha 170 times with 170 different 256*240 matrices thanks in advance
Best Answer