| EEGPLOT2TRIAL | Convert eegplot rejections into trial and electrode rejections compatible with EEGLAB format. |
| Usage: | >> [trialrej elecrej] = eegplot2trial( eegplotrej, frames, sweeps, colorin, colorout ); |
| Inputs: | |
eegplotrej |
eegplot output (TMPREJ; see eegplot for more details) |
frames |
number of points per epoch |
sweeps |
number of trials |
colorin |
only extract rejection of specific colors (here a n x 3 array must be given). Default: extract all rejections. |
colorout |
do not extract rejection of specified colors. |
| Outputs: | |
trialrej |
array of 0 and 1 depicting rejected trials (size sweeps) |
elecrej |
array of 0 and 1 depicting rejected electrodes in all trials (size nbelectrodes x sweeps ) |
| Note: | if colorin is used, colorout is ignored |
| Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |
| See also: | eegplot, eeg_multieegplot, eegplot2event, eeglab() |