Error in DPARSFA

Validating 240 potential DICOM images. 
Found 240 DICOM images. 
Converting 240/240  240 
0000001.dcm->20070930_090505gefunc31x31x30240RSSub003s004a001.nii 
Saving D:\WORK\LEARNING_RS-FMRI\PROCESSINGDEMODATA\FUNIMG\SUB003\20070930_090505gefunc31x31x30240RSSub003s004a001.nii 
Time elapsed 2797ms 
Converting Functional Images:Sub003 OKChris Rorden's dcm2nii :: 1 April 2010 
reading preferences file D:\Programm\spm12\toolbox\DPABI_V2.1_160415\DPARSF\dcm2nii\dcm2nii.ini 
reading preferences file DCM2NII.INI 
Validating 240 potential DICOM images. 
Found 240 DICOM images. 
Converting 240/240  240 
0000001.dcm->20070929_154622gefunc31x31x30240RSSub002s004a001.nii 
Saving D:\WORK\LEARNING_RS-FMRI\PROCESSINGDEMODATA\FUNIMG\SUB002\20070929_154622gefunc31x31x30240RSSub002s004a001.nii 
Time elapsed 3812ms 
Converting Functional Images:Sub002 OKChris Rorden's dcm2nii :: 1 April 2010 
reading preferences file D:\Programm\spm12\toolbox\DPABI_V2.1_160415\DPARSF\dcm2nii\dcm2nii.ini 
reading preferences file DCM2NII.INI 
Validating 240 potential DICOM images. 
Found 240 DICOM images. 
Converting 240/240  240 
0000001.dcm->20071016_110633gefunc31x31x30240RSSub001s004a001.nii 
Saving D:\WORK\LEARNING_RS-FMRI\PROCESSINGDEMODATA\FUNIMG\SUB001\20071016_110633gefunc31x31x30240RSSub001s004a001.nii 
Time elapsed 3937ms 
Converting Functional Images:Sub001 OK
Index exceeds matrix dimensions.
 
Error in DPARSFA_run>(parfor body) (line 242)
       if strcmpi(DirDCM(3).name,'.DS_Store')  %110908 YAN Chao-Gan, for MAC OS compatablie
 
Error in parallel_function (line 466)
            F(base, limit);
 
Error in DPARSFA_run (line 238)
    parfor i=1:AutoDataProcessParameter.SubjectNum
 
Error in DPARSFA>pushbuttonRun_Callback (line 1779)
    [Error]=DPARSFA_run(handles.Cfg);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback
Dear all,
 
I am running dparsfa  V4.1_160415 in matlab2012a. I keep getting the following error:
 
Index exceeds matrix dimensions.
 
Error in DPARSFA_run>(parfor body) (line 242)
        if strcmpi(DirDCM(3).name,'.DS_Store')  %110908 YAN Chao-Gan, for MAC OS compatablie
 
Error in parallel_function (line 466)
            F(base, limit);
 
Error in DPARSFA_run (line 238)
    parfor i=1:AutoDataProcessParameter.SubjectNum
 
Error in DPARSFA>pushbuttonRun_Callback (line 1779)
    [Error]=DPARSFA_run(handles.Cfg);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPARSFA (line 30)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback
 
I am looking forward to hearing your suggestions for solving this problem. 
 
Thanks,
 
Patrizia