POP_PLOTDATA Plot average of EEG channels or an independant components.

Usage: >> avg = pop_plotdata(EEG, typeplot, indices, trials);

Inputs:
EEG   
dataset structure
typeplot   
1=channel, 0=component (default:1)
indices   
array of channels or components index to plot (default: all)
trials   
array of trial indexes. only take specific trials into the average (default: all)

Outputs:
avg   
average matrix

See also: eeglab, plotdata

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

Back to functions