READEGIHDR Read header information from EGI (versions 2,3,4,5,6,7) data file.

Usage: >> [head] = readegihdr(fid,forceversion)

Input:
fid   
file identifier of EGI datafile
forceversion   
optional integer input to override automatic reading of version number.

Output:
head   
structure containing header information.

Structure fields are:
version   
2,3,4,5,6,or 7
samp_rate   
sampling rate in samples/s
nchan   
number of EEG channels
gain   
gain of amplifier
bits   
number of bits/sample
range   
abs(max. value)
segments   
number of epochs
categories   
number of categories
catname   
cell array of category names
segsamps   
number of samples/segment
eventtypes   
number of event types
eventcode   
string array of event codes

Author: Cooper Roddey, SCCN, 13 Nov 2002

Note: this code derived from C source code written by
Tom Renner at EGI, Inc. (www.egi.com)

See also: readegi

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

Back to functions