s = dicomread('SE000005\IM00000.dcm'); [r c] = size(s);X = repmat(int16(0), [256 256 0 25])for i=1:26 filename = sprintf('SE000005\\IM0000%d.dcm', i); X(:,:,1,i) = dicomread(filename);endmontage(X,'displayrange',[]);
but
error in X(:,:,1,i) = dicomread(filename);(Subscripted assignment dimension mismatch.))
Best Answer