| POP_EDITEVENTVALS | Edit events contained in an EEG dataset structure. If the dataset is the only input, a window pops up allowing the user to insert the relevant parameter values. |
| Usage: | >> EEGOUT = pop_editeventvals( EEG, 'key1', value1, 'key2', value2, ... ); |
| Input: | |
EEG |
EEG dataset |
| Optional inputs: | |
'sort' |
{ field1 dir1 field2 dir2 } Sort events based on field1 then on optional field2. Arg dir1 indicates the sort direction (0 = increasing, 1 = decreasing). |
'changefield' |
{num field value} Insert the given value into the specified field in event num. (Ex: {34 'latency' 320.4}) |
'changeevent' |
{num value1 value2 value3 ...} Change the values of all fields in event num. |
'add','append' |
{num value1 value2 value3 ...} Insert event after event num, and assign value to structure fields. |
'insert' |
{num value1 value2 value3 ...} Insert event before event num, and assign value to structure fields. |
'delete' |
vector of indices of events to delete |
| Outputs: | |
EEGOUT |
EEG dataset with the selected events only Ex: EEG = pop_editeventvals(EEG,'changefield', { 1 'type' 'target'}); % set field type of event number 1 to 'target' |
| Author: | Arnaud Delorme & Hilit Serby, SCCN, UCSD, 15 March 2002 |
| See also: | pop_selectevent(), pop_importevent() |