<< edfrewind edflib - Toolbox for reading and writing edf/bdf - files edftell >>

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

edfseek

Sets the sample position indicator

Calling Sequence

[seek]=edfseek(handle,edfsignal ,offset,whence);

Parameters

edf_handle

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

edfsignal

: Minimum value is 1.

offset

: this offset is added to the position

whence

: 0 (EDFSEEK_SET) the offset is relative to the start of the file.

: 1 (EDFSEEK_CUR) the offset is relative to the current position indicator.

: 2 (EDFSEEK_END) the offset is relative to th end-of-file.

seek

: current offset

Description

The edfseek function sets the sample position indicator for the edfsignal pointed to by edfsignal. The new position, measured in samples, is obtained by adding offset samples to the position specified by whence. Returns the current offset. Otherwise, -1 is returned. Note that every signal has it's own independent sample position indicator and edfseek() affects only one of them.

Examples

[seek]=edfseek(edf_handle,1,0,1000);

Authors


Report an issue
<< edfrewind edflib - Toolbox for reading and writing edf/bdf - files edftell >>