POP_REJEPOCH | Reject pre-labeled trials in a EEG dataset. Ask for confirmation and accept the rejection |
Usage: | >> OUTEEG = pop_rejepoch( INEEG, trialrej, confirm) |
Inputs: | |
INEEG |
Input dataset |
trialrej |
Array of 0s and 1s (depicting rejected trials) (size is number of trials) |
confirm |
Display rejections and ask for confirmation. (0=no. 1=yes; default is 1). |
Outputs: | |
OUTEEG |
output dataset |
Example: | >> data2 = pop_rejepoch( EEG, [1 1 1 0 0 0] ); % reject the 3 first trials of a six-trial dataset |
Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |
See also: | eeglab, eegplot |