Error using Mem function

Dear BS experts:

I was trying to compute sources with mean entrophy as I usually do (I have already computed head model with duneuro FEM, I set the noise covariance), but this time I got an error:

BEst (version 2.7.3, downloaded on: )
Brain Entropy in space and time
Credit: PhysNum - Centre de Recherches Mathematiques (U. of M., Montreal)
LATIS (ETS, Montreal) and MultiFunkImLab (McGill, Montreal)
e-mail: latislab@gmail.com

===== pipeline cMEM
cMEM, be_main_source ... done.
cMEM, be_main_leadfields ... done.
cMEM, temporal blockwise clustering ...
cMEM, fdr criteria for clustering
EEG : 18.74 (alpha), 21.01 (beta)
MEM : New noise covariance is computed using baseline
Index exceeds matrix dimensions.

Error in be_main_data_preprocessing (line 51)
OPTIONS.automatic.Modality(ii).covariance = noise_var(
OPTIONS.automatic.Modality(ii).channels,OPTIONS.automatic.Modality(ii).channels );

Error in be_cmem_solver (line 172)
[OPTIONS, obj] = be_main_data_preprocessing(obj, OPTIONS);

Error in be_main_call (line 157)
[Results, MEMoptions] = feval(['be_' lower(MEMoptions.mandatory.pipeline) '_solver'], HeadModel, MEMoptions, Results );

Error in be_main (line 60)
[Results, OPTIONS] = be_main_call(varargin{:});

Error in process_inverse_2018>Compute (line 681)
[Results, OPTIONS] = be_main(HeadModel, OPTIONS);

Error in process_inverse_2018 (line 24)
eval(macro_method);

Error in panel_protocols>TreeInverse (line 1307)
[OutputFiles, errMessage] = process_inverse_2018('Compute', iStudies, iDatas);

Error in panel_protocols (line 45)
eval(macro_method);

Error in tree_callbacks>@(h,ev)panel_protocols('TreeInverse',bstNodes,'2018') (line 2568)
gui_component('MenuItem', jPopup, [], 'Compute sources [2018]', IconLoader.ICON_RESULTS, [],
@(h,ev)panel_protocols('TreeInverse', bstNodes, '2018'));

However, I was able to compute sources without any issue using the Current Density Map option for Minimum Norm.

Thanks in advances!

UPDATE: I managed to solve this: I deleted the previous computed noise covariance and I recomputed the sources setting the baseline within the cMem option

1 Like