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

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

edfwrite_psamples

Writes n physical samples (uV, mA, Ohm) belonging to one signal where n is the samplefrequency of the signal.

Calling Sequence

edfwrite_psamples(edf_handle, data_vec)

Parameters

handle

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

data_vec

: data vector belonging to one signal. The size must be the samplefrequency of the signal.

Description

Writes n physical samples (uV, mA, Ohm) from data_vec belonging to one signal where n is the samplefrequency of the signal. The physical samples will be converted to digital samples using the values of physical maximum, physical minimum, digital maximum and digital minimum. The number of samples written is equal to the samplefrequency of the signal. Call this function for every signal in the file. The order is important! When there are 4 signals in the file, the order of calling this function must be: signal 0, signal 1, signal 2, signal 3, signal 0, signal 1, signal 2, etc.

All parameters must be already written into the bdf/edf-file.

Examples

edfwrite_psamples(edf_handle, data_vec);

Authors

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