<< edfopen_file_readonly edflib - Toolbox for reading and writing edf/bdf - files edfread_file >>

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

edfopen_file_writeonly

Opens an new file for writing.

Calling Sequence

[edf_handle]=edfopen_file_writeonly(path, filetype, number_of_signals)

Parameters

path

: string containing the path and name of the file

filetype

: 0 = EDFLIB_FILETYPE_EDFPLUS

: 1 = EDFLIB_FILETYPE_BDFPLUS

number_of_signals

: number_of_signals defines the number of signals that can be saved in the file

edf_handle

: handle of the opened file

Description

Opens an new file for writing. Warning, an already existing file with the same name will be silently overwritten without advance warning! Returns a handle on success, you need this handle for the other functions. In case of an error, it returns a negative number . This function is required if you want to write a file..

Examples

[edf_handle]=edfopen_file_writeonly('demo.bdf', 0, 2);

Authors

See Also


<< edfopen_file_readonly edflib - Toolbox for reading and writing edf/bdf - files edfread_file >>