your work is good. it is helping me a lot. but i am facing a small problem if i give input(dcm files) of larger size like 138 kb other than that you used is 129 kb. please help me out with this. i am using matlab r2008a. i get the error;
voxel_size =
0.9375 0.9375 6.0000
Name Size Bytes Class Attributes
D 256x256x12 1572864 uint16
??? Index exceeds matrix dimensions.
Error in ==> analyze_series8 at 43
im = squeeze(D(:,:,i));