POP_IMPORTDATA | Import data from a Matlab variable or from a file. |
Usage: | >> EEGOUT = pop_importdata( 'key', val,...); |
Optional inputs: | |
'setname' |
string with the name of the dataset |
'data' |
['varname'|'filename'] import a file or variable into the EEG structure of EEGLAB. |
'dataformat' |
['array|matlab|ascii|float32'] format of the input data file. The data file is transposed if the number of row is greater than the number of columns. Note that for 'float32', data must be organised in the format channels x ndata. |
'chanlocs' |
['varname'|'filename'] import a file containing electrodes locations (see >> help readlocs for file format). |
'nbchan' |
number of channel in data |
'xmin' |
starting time in second |
'pnts' |
number of point per frame in the data (for epoched data only) |
'srate' |
data sampling rate |
'icaweight' |
ica weight matrix. By default, the sphering matrix is set to the identity matrix if it is empty. |
'icasphere' |
ica sphering matrix |
Outputs: | |
EEGOUT |
modified dataset structure |
Note: | this function call pop_editset to modify parameter values. |
Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |
See also: | pop_editset, pop_select, eeglab |