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
271 stars 73 forks source link

pop_syncroartifacts.m has invalid "equivalent command" output #164

Open ammsimmons opened 1 year ago

ammsimmons commented 1 year ago

pop_syncroartifacts.m issue with argument call

When pop_syncroartifacts.m is called by the GUI, it outputs a "equivalent command" for scripting purposes but this command uses incorrect input argument calls, for example:

whereas correct syntax is: pop_syncroartifacts(EEG,'Direction','Bidirectional'); the "equivalent command" is pop_syncroartifacts(EEG,3); which is invalid.


Steps to Reproduce

Use GUI: ERPLAB > Artifact Detection in Epoched Data > Synchronize artifact info in EEG and Eventlist


Expected behavior:

The "equivalent command" should output a command that uses the correct input arguments (according to the function documentation).


Actual behavior:

[What actually happened]


Versions

OS version [fill in]
Matlab version [fill in]
EEGLAB version [fill in]
ERPLAB version 9.00