[Eeglablist] Concatinating data epochs for same conditions in one file, from different subjects

Brian Murphy brian.murphy at unitn.it
Tue Apr 13 01:35:57 PDT 2010


Dear Saim,

the usual way to do group analyses is to join participant sessions into 
a single "study":
    http://sccn.ucsd.edu/wiki/Chapter_12:_Multiple_Datasets

But if you really want to concatenate multiple datasets from different 
people, you can use the pop_mergeset function repeatedly, either from 
the GUI (Edit>Append datasets), or with a script such as:
    files = {'A.set', 'B.set', 'C.set'}
    EEG = pop_loadset(char(files(1)))
    for f=2:length(files)
        file = char(files(f))
        TMP = pop_loadset(file)
        EEG = pop_mergeset(EEG,TMP,0)
    end
    EEG = eeg_checkset(EEG)
    EEG.setname = 'combined'
pop_saveset(EEG,'filename','combined.set')
eeglab redraw
   
See also the earlier post 
http://sccn.ucsd.edu/pipermail/eeglablist/2008/002073.html

good luck,

Brian



More information about the eeglablist mailing list