Import MRI Error:Inner matrix dimensions must agree (DICOM)

Hi! I have downloaded SPM and CAT12 to deal with T1-MRI Segmentation. Now I am trying to import individual MRI. I have data in .dicom format and I am using MATLAB R2016a. This is my error:

Error: Line 625: Error using /
** Inner matrix dimensions must agree.
**
** Call stack:
** >spm_dicom_convert.m>WriteVolume at 625
** >spm_dicom_convert.m>ConvertStandard at 246
** >spm_dicom_convert.m at 72
** >in_mri_dicom_spm.m at 69
** >import_mri.m at 106
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_mri,iSubject,[],[],1) at 549

Could you tell me what can cause it?
Thanks.

Could you tell me what can cause it?

No, unfortunately I can't...
DICOM is a complicated format, in my experience there is no DICOM reader that can read successfully all the existing images. Even though the SPM reader tends to be very stable, there are some cases that fail and need to be processed in a different way.

What I suggest is that you try again converting your images from DICOM to NII with another program first, then import the .nii file to your Brainstorm database and run CAT12 on it from Brainstorm.

Free programs with good DICOM converters:

If you'd like to help improving the SPM DICOM converted, please report this bug to the SPM developers (post a message on the mailing list with a download link for your DICOM data): SPM12 Software - Statistical Parametric Mapping

Thanks very much for your reply! I will try again converting my images from DICOM to NII with another program first.