<< edf_get_technician Functions for reading files edf_get_transducer >>

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

edf_get_timevector

Generates a time vector for the signal edfsignal.

Calling Sequence

[time_vec]=edf_get_timevector(path, edfsignal,length);
[time_vec]=edf_get_timevector(path, edfsignal);
[time_vec]=edf_get_timevector(edf_header, edfsignal,length);
[time_vec]=edf_get_timevector(edf_header, edfsignal);

Parameters

path:

string containing the path and name of the file

edf_header:

plist with header information from edfopen_file_readonly

edfsignal:

Minimum value is 1

length:

length of the generated time vector

time_vec:

time vector of the signal edfsignal

Description

Generates a time vector for the signal edfsignal.

Examples

time_vec=edf_get_timevector(edf_getpath()+'/demos/demo.bdf',1)

[header_list]=edfopen_file_readonly(edf_getpath()+'/demos/demo.bdf', 0);
time_vec=edf_get_timevector(header_list,1);
edf_close(header_list.handle);

Authors


Report an issue
<< edf_get_technician Functions for reading files edf_get_transducer >>