I have CT slices and I would like to load (imread) them to the Workspace. But I always read only one (first) slice (image). This is my code:
filename = sprintf('C:/Users/ced0005/DP/DP_framework/DICOM/slicesCT/000048.dcm',p);
X(:,:,1,p) = dicomread(filename);
I don´t know, where mistake is.
Can you advise me? Thank you for your answers.