edfwrite_annotations — Writes an annotation/event to the file
edfwrite_annotations(edf_handle,edf_annotation)
Writes annotations/events from a structure to the file. This function is optional and can be called only after opening a file in writemode and before closing the file
edf_handle is the file handle of the opened edf/bdf-file.
the struct edf_annotation contains: edf_annotation.onset, edf_annotation.duration and edf_annotation.description. Each entry can be a vector!
edf_annotation.onset is relative to the starttime and startdate of the file. edf_annotation.onset and duration are in units of Seconds! resolution is 0.0001 second! If edf_annotation.duration is unknown or not applicable: set a negative number (-1).
edf_annotation.description is a UTF8-string containing the text that describes the event.