Error in generating group mask

Submitted by Shatgul on

Hello, 

I have a question regarding to generating a group mask under quality contral. I wanted to generate a group mask for later use in paired t-test analysis, and this step is very important in this analysis. 

I watched the online courses to find out how the working directory is set up and tried the same way that was in the vedio:

I directed to 13 subjects' AutoMasks: I created a GroupMasks folder, and I have FunImg folder, then I have Sub_001 to Sub_013 folders, under each subject's folder, I have Masks folder, then AutoMasks, then "wAutoMask_Sub_001 .nii" files under each AutoMasks folder.

However, I keep getting this error: "Index exceeds matrix dimension."

Can any one expert help me explain why? How should I set it up so I can generate a group mask successfully? 

 

 

Sincerely,

Shatgul

Thank you. Yes, my data was processed by DPARSFA, and I do have wAutoMask for all subjects.

However, I keep getting this error:

Error using cellfun
Input #2 expected to be a cell array, was char instead.
 
Error in DPABI_QC_TOOL>MaskButton_Callback (line 243)
MaskCell=cellfun(@(subj) fullfile(WorkDir, 'Masks', 'AutoMasks', ['wAutoMask_', subj,'.nii']), SubjCell,...
 
 
Error in gui_mainfcn (line 95)
        feval(varargin{:});
 
Error in DPABI_QC_TOOL (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
 
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DPABI_QC_TOOL('MaskButton_Callback',hObject,eventdata,guidata(hObject)) 
Error while evaluating UIControl Callback.
 
 
Would you tell me how to generate a groupmask in this case?
 
Sincerely,
Shatgul