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
262 stars 75 forks source link

Pop_summary_AR_erp_detection #116

Open ERPlab opened 4 years ago

ERPlab commented 4 years ago

I am attempting to use the Pop_summary_AR_erp_detection feature within a loop in MATLAB but have been getting errors.

I have the subject_list and then define the subject as subject_list in the loop. In the loop, I successfully use load and process and loop through and save the subjects' data using: 'filename',[subject '.set'],'filepath','C:\Users\ERPLab\Desktop\'

But using this strategy for getting a .txt summary of artifact rejection has not been working: ERP = pop_summary_AR_erp_detection(ERP, 'filename', [subject '.txt'], 'C:\Users\ERPLab\Desktop\

And I get these errors (where 055 is the subject):

Error using pop_summary_AR_erp_detection Unmatched parameter name '055.txt' must be a string scalar or character vector that can represent a field name.

Error in pop_summary_AR_erp_detection (line 136) p.parse(ERP, fullname, varargin{:});

How can I use Pop_summary_AR_erp_detection in a loop to get the .txt of artifact detection for each subject?

| OS version: Windows 7 | Matlab version: R2019a | EEGLAB version: EEGLAB 14.1.2 | ERPLAB version | ERPLAB 7.0.0