Skip to content
Neal W Morton edited this page Sep 6, 2017 · 4 revisions

Importing EEGLAB Data

See Patterns for information about the pattern format which EEG structures must be converted to. Use eeglab2pat to convert an EEG structure to pattern format, for use with the toolbox.

Information about subjects can be imported using get_sessdirs if you have standard directory structure (experiment/subject/session organization).
Alternatively, you can create an experiment object manually. If there are three subjects (named subj00, subj02, and subj05), you can create a basic experiment object as follows:

subj_ids = {'subj00' 'subj02' 'subj05'};
exp = create_exp('mystudy', 'mystudy_results_dir', subj_ids);

Once you have an experiment object, set_obj can be used to add your pattern objects, e.g.

exp = setobj(exp, 'subj', 'subj00', 'pat', my_pat_object);

to add my_pat_object to subj00.