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

error in pop_mergeset #100

Closed xf15 closed 5 years ago

xf15 commented 5 years ago

Description

[I am trying to merge two dataset: EEG and EEG1 by calling pop_mergeset(EEG, EEG1) and got the below error]

Merging datasets...
Inserting boundary event...
Concatenating urevents...
Reference to non-existent field 'urevent'.

Error in pop_mergeset (line 272)
                nonemptymask = ~cellfun('isempty',{tmpevents.urevent});

urevent is not a field of EEG.event but a field of EEG. I think this is a bug


Steps to Reproduce


Expected behavior:

[What you expected to happen]


Actual behavior:

[What actually happened]


Versions

OS version [Win10]
Matlab version [2018a]
EEGLAB version [14_1_2b]
ERPLAB version [0_7_0]
xf15 commented 5 years ago

steps the two datasets have gone through: filt_chop_elist_bins_be

xf15 commented 5 years ago

Sorry, this an eeglab not erplab issue. and the solution is here. https://sccn.ucsd.edu/pipermail/eeglablist/2017/012530.html