SNAPREAD Read data in Snap-Master Standard Binary Data File Format Reads Snap-Master header and data matrix (nchans,nframes). Ref: Users Guide, Snap-Master for Windows (1997) p. 4-19

Usage: >> data = snapread(filename); % read .SMA file data
>> [data,params,events,head] = snapread(filename,seekframes);
% save parameters, event list

Inputs:
filename   
string containing whole filename of .SMA file to read
seekframes   
skip this many initial time points {default 0}

Output:
data   
data matrix, size(nchans,nframes)
params   
[nchannels, nframes, srate]
events   
vector of event frames (lo->hi transitions on event channel); See source to set EVENT_CHANNEL and EVENT_THRESH.
head   
complete char file header

Authors: Scott Makeig & Tzyy-Ping Jung, SCCN/INC/UCSD, La Jolla, January 31, 2000

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

Back to functions