bva_epoch

bva_epoch(varargin)

bva_epoch - epoch continuous Brain Vision Data

function [eeg RT] = bva_epoch(data,trigger,stimCode,t0,t1,sampRate [,response])

Epoch continous BVA data set

Input:

data = continous data (channel x time) trigger = triggers (cf. bva_readmaker.m) stimCode = relevant trigger code t0 = time pre-stimulus t1 = time post-stimulus sampRate = sampling rate of data response = correct reponse - optional, required for RTs

Output:

eeg = eeg-set (chan x time x trial) rt = reaction times for trials (only computed if response given)

requires:

see also: ERRP/io, bva_readmarker.m