<< edf_birthdate_str2vec edflib - Toolbox for reading and writing edf/bdf - files edf_close >>

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

edf_blockwrite_psamples

Writes physical samples (uV, mA, Ohm).

Calling Sequence

edf_blockwrite_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 physical samples (uV, mA, Ohm) from data_vec. datavec must be filled with samples from all signals, starting with n samples of signal 0, n samples of signal 1, n samples of signal 2, etc. where n is the samplefrequency of the signal. One block equals one second. The physical samples will be converted to digital samples using the values of physical maximum, physical minimum, digital maximum and digital minimum. The total number of samples written is equal to the sum of the samplefrequencies of all signals.

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

Examples

edf_blockwrite_psamples(edf_handle, data_vec);

Authors


<< edf_birthdate_str2vec edflib - Toolbox for reading and writing edf/bdf - files edf_close >>