bva_epoch2

bva_epoch2(varargin)

bva_epoch2 - response-locked epoching of continuous Brain Vision Data

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

Epoch continous BVA data set

Input:

data = continous data (channel x time) trigger = triggers (cf. bva_readmaker.m) respCode = relevant response code stimCode = relevant trigger code t0 = time pre-stimulus t1 = time post-stimulus sampRate = sampling rate of data

Output:

eeg = eeg-set (chan x time x trial) RTs = reaction times

requires:

see also: ERRP/io, bva_readmarker.m, bva_epoch.m