POP_MERGESET Merge two or more datasets. If only one argument is given, a window pops up to ask for more arguments.

Usage: >> OUTEEG = pop_mergeset( ALLEEG ); % use a pop-up window
>> OUTEEG = pop_mergeset( ALLEEG, indices, keepall);
>> OUTEEG = pop_mergeset( INEEG1, INEEG2, keepall);

Inputs:
INEEG1   
first input dataset
INEEG2   
second input dataset else
ALLEEG   
array of EEG dataset structures
indices   
indices of EEG datasets to merge
keepall   
[0|1] 0 -> remove, or 1 -> preserve, ICA activations of the first dataset and recompute the activations of the merged data {default: 0}

Outputs:
OUTEEG   
merged dataset

Author: Arnaud Delorme, CNL / Salk Institute, 2001

See also: eeglab()

See the matlab file pop_mergeset.m (may require other functions)

Back to functions