eeglab微状态分析报错,位置 1 处的索引超出数组边界(不能超出 3)。

报错是这样的

img

问题代码应该是这一段

%% Now we combine the microstate maps across subjects and edit the mean
EEG = pop_CombMSTemplates(ALLEEG, ConIndex, 0, 0, strcat('GrandMean',con_name,group_name));
[ALLEEG, EEG, CURRENTSET] = pop_newset(ALLEEG, EEG, numel(ALLEEG)+1,'gui','off'); % Make a new set
[ALLEEG,EEG] = pop_ShowIndMSMaps(EEG, 4, 1, ALLEEG); % Here, we go interactive to allow the user to put the classes in the canonical order
[ALLEEG,EEG, CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET); % and store it
GrandMeanConIndex = CURRENTSET; % And keep track of it

eeglab redraw

用示例数据能跑,但是换成自己的就这样报错了,示例数据有只有10个被试,自己的有60个,都是set和fdt格式。不会用Matlab,想问问究竟是为啥……