LOADCNT | Load a Neuroscan continuous signal file. |
Usage: | >> cnt = loadcnt(file, varargin) |
Inputs: | |
filename |
name of the file with extension |
Optional inputs: | |
't1' |
start at time t1, default 0 |
'sample1' |
start at sample1, default 0, overrides t1 |
'lddur' |
duration of segment to load, default = whole file |
'ldnsamples' |
number of samples to load, default = whole file, overrides lddur |
'blockread' |
size of the blocks to read. Default is 1. |
'avgref' |
['yes'|'no'] average reference. Default 'no'. |
'avrefchan' |
reference channels. Default none. |
Outputs: | |
cnt |
structure with the continuous data and other informations |
Known limitations: | Initially I couldn't get the continuous data as they would appear using CNTTOASC or CNTTOBIN (www.neuro.com/neuroscan/download.html). We don't have the code for these functions, so we don't really know how the raw data is read. After extensive searches, I realized that for my continuous CNT files, data was stored in blocks of 40 unsigned short integers for each channel. I couldn't find where this parameter was specified in the header, so I added the option 'blockread' and input the number 40 by hand { cnt = loadcnt('file.cnt', 'blockread', 40) }. By default the size of the block is 1 and this work for most CNT files. For more see http://www.cnl.salk.edu/~arno/cntload/index.html |
Authors: | Andrew James & Arnaud Delorme 2000-2001 |