Error using DPARSFA_run (line 819) Index exceeds the number of array elements (0).

Hi there, 

Thie above error seems to appear after the slice timing was completed successfully. I've checked that

1. all the subject folders have .nii file in the FunImgA directory

2. all of these .nii files have the same time point

3. all the subject folders have a .nii file in the T1Img directory

it would seem that the next step is the field map correction

i have the following field map files within the FieldMap directory for all subjects:

FieldMap/Magnitude1Raw/002/Mag1.nii

FieldMap/Magnitude2Raw/002/Mag2.nii

FieldMap/PhaseDiffRaw/002/PhaseDiff.nii

do see the attached image for the filed map correction settings

thanks in advance

AttachmentSize
Image icon Capture.JPG29.5 KB

If you already converted from DICOM to NIfTI, then name as:

FieldMap/Magnitude1Img/002/Mag1.nii

FieldMap/Magnitude2Img/002/Mag2.nii

FieldMap/PhaseDiffImg/002/PhaseDiff.nii