LIMO-EEG-Toolbox / limo_tools

Hierarchical Linear Modelling for MEEG data
https://limo-eeg-toolbox.github.io/limo_meeg/
Other
59 stars 27 forks source link

Repeated measure ANOVA 2nd level #30

Closed arnodelorme closed 3 years ago

arnodelorme commented 5 years ago

When using TFCE (checked), I get the error below. However, there seems to be an alternative function, when using the alternative function bwlabeln, it works fine.

The input array onoff is 64×359. I am not sure about nfreq and ntime.

Note to self: Use medium study, 2nd level repeated measure ANOVA with 2 groups of subjects (do not forget to select TFCE).

Arno

Error using spm_bwlabel Requested 359x12572080895638372353x10135845549 (17179869184.0GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.

Error in limo_findcluster (line 92) [labelmat(spatdimlev, :, :), num] = spm_bwlabel(double(reshape(onoff(spatdimlev, :, :), nfreq, ntime)), 6);

Error in limo_tfce (line 353) [clustered_map, num] = limo_findcluster((data > h), channeighbstructmat,2);

Error in limo_random_robust (line 1263) tfce_Rep_ANOVA = limo_tfce(2,squeeze(tmp_Rep_ANOVA(:,:,i,1)),LIMO.data.neighbouring_matrix);

Error in limo_random_select (line 1773) tmpname = limo_random_robust(type+1,tmp_data,gp,factor_nb,LIMO,g.nboot,g.tfce);

Error in limo_random_effect>ANOVA_Callback (line 234) limo_random_select(5,handles.chan_file,'nboot',handles.b,'tfce',handles.tfce,'type','Channels');

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

Error in limo_random_effect (line 29) gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)limo_random_effect('ANOVA_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.