Do you mean something like:
for i = 600:1400
I = dicomread(sprintf('1255-%i.dcm',i));
imwrite(I, sprintf('1255-%i.tif',i));
end
An alternative to using sprintf for the filename is:
"1255-"+i+".dcm"
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!