I have two different types of dicom (medical image files) in the same folder. I want to sort them into two different arrays, one for SE006 and one for SE014.
MR-ST001-SE006-0001.dcm... MR-ST001-SE006-0021.dcm
MR-ST001-SE014-0001.dcm... MR-ST001-SE014-0013.dcm
I am using something like this code below, but it is wrong. I think I have syntax errors.
if image == 'MR-ST001-SE006-%4.4.dcm'
SE006(end+1) = image
if image == 'MR-ST001-SE014-%4.4.dcm'
SE014(end+1) = image
Anyone have any tips for improving this to make it work?
source
share