POP_IMPORTPRES Append Presentation event file information into an EEGLAB dataset The Presentation stimulus presentation program outputs an ascii log file. This function merges existing EEG dataset events with additional field information (fields) about those events contained in the logfile.


Usage: >> EEGOUT = pop_importpres( EEGIN, filename );
>> EEGOUT = pop_importpres( EEGIN, filename, typefield, latfield, durfield, align, 'key', 'val', ... );

Inputs:
EEGIN   
input dataset
logfilename   
Presentation logfile name
typefield   
[string] type fieldname {default: 'code'}
latfield   
[string] latency fieldname {default: 'time'}
durfield   
[string] duration fieldname {default: 'none'}
align   
[integer] alignment with pre-existing events See >> help pop_importevent
'key','val'   
This function calls pop_importevent. These are optional arguments for this function (for event alignment for instance).

Outputs:
EEGOUT   
data structure with added Presentation logfile information

Note: If there are pre-existing events in the input dataset,
this function will recalculate the latencies of the events
in the Presentation file, so that they match those
of the pre-existing events.

Author: Arnaud Delorme, CNL / Salk Institute, 15 March 2002

Note: This function is backward compatible with its early versions
(before the input argument 'durfield' was introduced).
It can read the 'align' value as its 5th (not 6th) paramater.

See also: eeglab(), pop_importevent

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

Back to functions