READEGI Read EGI Simple Binary datafile (versions 2,3,4,5,6,7). Return header info, EEG data, and any event data.

Usage: >> [head, TrialData, EventData, CatIndex] = readegi(filename, dataChunks)

Required Input:
filename   
EGI data filename

Optional Input:
dataChunks   
vector containing desired frame numbers(for unsegmented datafiles) or segments (for segmented files). If this input is empty or is not provided then all data will be returned.

Outputs:
head   
struct containing header info (see readegihdr() )
TrialData   
EEG channel data
EventData   
event codes
CatIndex   
segment category indices

Author: Cooper Roddey, SCCN, 13 Nov 2002

Note: code derived from C source code written by
Tom Renner at EGI, Inc.

See also: readegihdr()

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

Back to functions