Name

edfwrite_annotations — Writes an annotation/event to the file

Calling Sequence

edfwrite_annotations(edf_handle,edf_annotation)

Description

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.

Examples

 edf_annotation.onset=[1.43; 1.5];
				    edf_annotation.duration=[-1;-1];
			            edf_annotation.description=["ann 1"; "ann 2"];
				edfwrite_annotations(edf_handle, edf_annotation);

Authors

Holger Nahrstaedt