<< edfwrite_annotation_utf8 edflib - Toolbox for reading and writing edf/bdf - files edfwrite_header >>

edflib - Toolbox for reading and writing edf/bdf - files >> edflib - Toolbox for reading and writing edf/bdf - files > edfwrite_annotations

edfwrite_annotations

Writes an annotation/event to the file

Calling Sequence

edfwrite_annotations(edf_handle,edf_annotation)

Parameters

edf_handle

: integer containing the file handle of the opened edf/bdf-file.

edf_annotation

:the struct edf_annotation contains: edf_annotation.onset, edf_annotation.duration and edf_annotation.description. Each entry can be a vector! .

edf_annotation.onset

: onset is relative to the starttime and startdate of the file in units of Seconds! resolution is 0.0001 second! .

edf_annotation.duration

: duration are in units of Seconds! resolution is 0.0001 second! If duration is unknown or not applicable: set a negative number (-1)

edf_annotation.description

: UTF8-string containing the text that describes the event.

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

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


<< edfwrite_annotation_utf8 edflib - Toolbox for reading and writing edf/bdf - files edfwrite_header >>