(SOLVED!!!) error with group comparison

Submitted by Ham on

At the beginning I only moved the stats/stats path, but once I move the whole stats folders up it worked!

 

Sorry!

 

 

 

Dear all, 

 

Following the tutorial steps but with my data, shows the next error.

I entered the string variable with equal number of subjects. 

 

Thank you so much!

Unndefined function or variable 't'.


Error in nanmean (line 7)

N = sum(~isnan(t), dim);


Error in ttest (line 131)

xmean = nanmean(x,dim);


Error in executeStats>StatsFunction (line 402)

            [~,Result.PVAL] =

            ttest(brainData(strcmpi(variable,uGroup(1))),brainData(strcmpi(variable,uGroup(2))));


Error in executeStats>nDimStats (line 316)

        Result = StatsFunction(fid,subjectList,brainData,variable,StatsType,partialVar,isRand,0);


Error in executeStats (line 97)

                            [res, Result] =

                            nDimStats(fid,subjectList,actTask,GraphVar.Result,VarData,statsType,[],i_run > 1);


Error in GraphVar_corr (line 89)

    [Files,N] =

    executeStats(allTasks,dialogData.statsType,dialogData.functionList,dialogData.thresholds,dialogData.VarList,dialogData.CovarList,nRandom,dialogData.nShuffel,0,dialogData.ConnectivityThr);

    

Error in GraphVar>Btn_calcCorr_Callback (line 73)

    GraphVar_corr(handles,allTask)


Error in gui_mainfcn (line 95)

        feval(varargin{:});


Error in GraphVar (line 40)

    gui_mainfcn(gui_State, varargin{:});


Error in @(hObject,eventdata)GraphVar('Btn_calcCorr_Callback',hObject,eventdata,guidata(hObject))



Error while evaluating uicontrol Callback


defined function or variable 't'.


Error in nanmean (line 7)

N = sum(~isnan(t), dim);


Error in ttest (line 131)

xmean = nanmean(x,dim);


Error in executeStats>StatsFunction (line 402)

            [~,Result.PVAL] =

            ttest(brainData(strcmpi(variable,uGroup(1))),brainData(strcmpi(variable,uGroup(2))));


Error in executeStats>nDimStats (line 316)

        Result = StatsFunction(fid,subjectList,brainData,variable,StatsType,partialVar,isRand,0);


Error in executeStats (line 97)

                            [res, Result] =

                            nDimStats(fid,subjectList,actTask,GraphVar.Result,VarData,statsType,[],i_run > 1);


Error in GraphVar_corr (line 89)

    [Files,N] =

    executeStats(allTasks,dialogData.statsType,dialogData.functionList,dialogData.thresholds,dialogData.VarList,dialogData.CovarList,nRandom,dialogData.nShuffel,0,dialogData.ConnectivityThr);

    

Error in GraphVar>Btn_calcCorr_Callback (line 73)

    GraphVar_corr(handles,allTask)


Error in gui_mainfcn (line 95)

        feval(varargin{:});


Error in GraphVar (line 40)

    gui_mainfcn(gui_State, varargin{:});


Error in @(hObject,eventdata)GraphVar('Btn_calcCorr_Callback',hObject,eventdata,guidata(hObject))



Error while evaluating uicontrol Callback

 
Forums