ucdavis / erplab

ERPLAB Toolbox is a free, open-source Matlab package for analyzing ERP data. It is tightly integrated with EEGLAB Toolbox, extending EEGLAB’s capabilities to provide robust, industrial-strength tools for ERP processing, visualization, and analysis. A graphical user interface makes it easy for beginners to learn, and Matlab scripting provides enormous power for intermediate and advanced users.
http://erpinfo.org/erplab
267 stars 73 forks source link

Bug in joinclosesegments() #121

Open olafdimigen opened 4 years ago

olafdimigen commented 4 years ago

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)