-
Notifications
You must be signed in to change notification settings - Fork 5
EEGLAB
= 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.
Normally information about subjects is imported using {{{get_sessdirs}}}. However, if data are being imported directly from EEGLAB, you can create an experiment object manually. If there are three subjects (named subj00, subj02, and subj05) with 3 sessions each, you can create an experiment object as follows:
{{{ subj_ids = {'subj00' 'subj02' 'subj05'}; sess = struct('number', num2cell(1:3)); subj = struct('id', subj_ids, 'sess', sess); exp = init_exp('my_experiment_name', 'subj', subj, 'resDir', 'directory_to_save_results'); }}}
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.