erplab
erplab copied to clipboard
Bug in joinclosesegments()
Function crashes with EEG datasets that happen to have artifacts in the wrong place. Here's a minimal test example to produce the bug:
% [winRej2 chanRej2 ] = joinclosesegments(winRej, chanrej, shortisisam);
joinclosesegments([500 1000; 2000 2500], ones(2,64), 500)
--> crash in line 109 due to non-fitting assignment (Sorry, currently no time for more detailed report, will follow up with one. Disclaimer: I am using the cont. rejection functions not from within ERPLAB - so this may not occur from within ERPLAB)