bva_readmarker

bva_readmarker(varargin)

bva_readmarker - read Brain Vision Data Exchange Marker File

function [trigger] = bva_readmarker(file)

Read stimulus markers and corresponding timepoints from Brain Vision Marker File and return it to the caller. Needed to provide a mean of epochising continous EEG data.

Input:

file = Brain Vision Data Exchange Marker File

Output:

out(1,:) = stimulus symbol out(2,:) = stimulus time in continous data

requires:

If mutiple segments are present (eg. discontinous recording, breaks, etc) the output will be wrapped in a cell array.

see also: ERRP/io