LOADEEG Load a binary data file in Neuroscan .eeg file format.

Usage: >> signal = loadeeg(filename);
>> [signal, accept, typeeeg, rt, response, chan_names, pnts, ntrials, srate, xmin, xmax] = loadeeg( filename, chanlist, triallist, typerange, accepttype, rtrange, responsetype);

Inputs:
filename   
[string] Input Neuroscan .eeg file
chanlist   
[integer array] Only import selected channels Ex: 3,4:10 {Default: 'all'}
triallist   
[integer array] Only import selected trials {Default: import 'all'}
typerange   
[integer array] Only import trials of selected type {Default: import 'all'}
accepttype   
[integer array] Only import trials with the selected 'accept' field values {Default: 'all'}
rtrange   
[float array] [min max] (ms) Only import trials with subject reaction times in this range {Default: 'all'}
responsetype   
[integer array] Only import trials with selected response type values {Default: 'all'}
format   
['short'|'int32'] data format. Neuroscan 4.3 uses 32-bit data while older version uses 16-bit. Default is 'short' (16-bit).

Outputs:
signal   
output signal of size (trials, points)
accept   
[1/0] vector of values for the accept field (one per trial)
typeeeg   
[Integer] values for the accept type (size trials)
rt   
[float] values for the accept rt (size trials)
response   
[Integer] values for the accept response (size trials)
chan_names   
['string' array] containing channel names
pnts   
Number of points per trial
ntrials   
Number of trials
srate   
Sampling rate (Hz)
xmin   
Trial start latency (ms)
xmax   
Trial end latency (ms)

Example: % Load .eeg data into an array named 'signal'
>> [signal]=loadeeg( 'test.eeg' );
% Plot the signal in the first channel, first trial
>> plot( signal(1,:) );

Author: Arnaud Delorme, CNL, Salk Institute, 2001

See also: pop_loadeeg, eeglab()

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

Back to functions