Sorry, this is my code
alldata = zeros(256, 256, 20);
for K = 1 : 20
petname = sprintf('PET%03d.dcm', K);
alldata(:, :, K) = dicomread(petname);
end
montage(alldata, []);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!