Help

Dear expert:
   Hello,I am a student in rfmri,whoes name is Wangmali.Now,i am involved in a project about diabetic cognitive dysfunction,aimed at studying changes in regard to the small-world feature of the brain function connectivity network.We plan to use DPARSF to process and contrast two groups:one is type 2 diabetes mellitus patients;one is normal persons.At present,we met some trouble and know little about how to deal with it.Therefore,we turn to you for help.Here are two pieces of code.Thank you in advance.
 
1.Error using rest_Fix_Read_Write_Error (line 64)
Meet error while fixing read write error. Please restart MATLAB, and run
"rest_Fix_Read_Write_Error" before starting anything.

Error in rest_WriteNiftiImage (line 92)
   rest_Fix_Read_Write_Error; %YAN Chao-Gan, 100426.

Error in y_Reslice (line 77)
rest_WriteNiftiImage(OutVolume,OutHead,OutputFile);

Error in DPARSFA_run (line 2102)
            y_Reslice(Filename,DPARSF_Normalized_TempImage,[1 1 1],0);

Error in DPARSFA>pushbuttonRun_Callback (line 1579)
    [Error]=DPARSFA_run(handles.Cfg);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in DPARSFA (line 33)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback
 
 
2.Load mask "D:\date\Masks\AllResampled_BrainMask_05_91x109x91.nii".Error using y_SCA (line 187)
Wrong ROI definition, please check:
D:\MATLAB\bin\1.nii.img
 
Error in DPARSFA_run>(parfor body) (line 3074)
            y_SCA([AutoDataProcessParameter.DataProcessDir,filesep,FunSessionPrefixSet{iFunSession},AutoDataProcessParameter.StartingDirName,filesep,AutoDataProcessParameter.SubjectID{i}],
            ...
 
Error in parallel_function (line 466)
            F(base, limit);
 
Error in DPARSFA_run (line 3051)
        parfor i=1:AutoDataProcessParameter.SubjectNum
 
Error in DPARSFA>pushbuttonRun_Callback (line 1579)
    [Error]=DPARSFA_run(handles.Cfg);
 
Error in gui_mainfcn (line 96)
        feval(varargin{:});
 
Error in DPARSFA (line 33)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback