I have two different types of dicom(medical imaging files) in the same folder. I want to sort them into two different arrays one for the SE006 and the other for the SE014.
MR-ST001-SE006-0001.dcm... MR-ST001-SE006-0021.dcm
MR-ST001-SE014-0001.dcm... MR-ST001-SE014-0013.dcm
I have been using something like this code below but it is wrong I think I have some 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 to help improve this so it works?
You can read all the files into a cell array with DIR command and then use CELLFUN to vectorize the solution from @jonsca.