EEG = pop_loadset('filename','s2.set','filepath','G:\mrERP\Exp\TJ\H_remove');
for i=1:size(EEG.event,2)
if strcmp(EEG.event(i).type,'S127')
EEG.event(i) = [];
elseif strcmp(EEG.event(i).type,'S120')
EEG.event(i) = [];
elseif strcmp(EEG.event(i).type,'S119')
EEG.event(i) = [];
end
end
为什么size是376 i 要跑到377去,最后导致索引超过矩阵维度