<< edf_blockwrite_psamples Functions for writing files edf_copy_file_header >>

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

edf_copy_annotation

Copy all annotation from one edf/bdf to an other file

Calling Sequence

edf_copy_annotation(filename_read,write_handle)
edf_copy_annotation(edf_header,write_handle)

Parameters

filename_read:

string containing the path and name of the file from which the header should be copied

edf_header:

struct with header information from edfopen_file_readonly

write_handle:

handle to writeable file to which the header is copied

Description

Copy all annotation from one edf/bdf to an other file

Examples

[write_handle]=edfopen_file_writeonly('demo2.bdf', 1, 2);
edf_copy_file_header(edf_getpath()+'/demos/demo.bdf',write_handle);

channel = edf_find_signalid(edf_getpath()+'/demos/demo.bdf',"sine");
edf_copy_signal_header(edf_getpath()+'/demos/demo.bdf',channel,write_handle,channel);
channel2 = edf_find_signalid(edf_getpath()+'/demos/demo.bdf',"sine2");
edf_copy_signal_header(edf_getpath()+'/demos/demo.bdf',channel2,write_handle,channel2);

edf_copy_annotation(edf_getpath()+'/demos/demo.bdf',write_handle);

edf_copy_signal_data(edf_getpath()+'/demos/demo.bdf',[channel,channel2],write_handle);

edf_close(write_handle);

Authors


Report an issue
<< edf_blockwrite_psamples Functions for writing files edf_copy_file_header >>