<< edf_get_equipment Functions for reading files edf_get_gender >>

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

edf_get_file_duration

Returns the duration of the file in seconds.

Calling Sequence

file_duration=edf_get_file_duration(path)
file_duration=edf_get_file_duration(edf_header)

Parameters

path:

string containing the path and name of the file

edf_header:

struct with header information from edfopen_file_readonly

file_duration:

duration of the file in seconds.

Description

Returns the duration of the file in seconds.

Examples

file_duration=edf_get_file_duration(edf_getpath()+'/demos/demo.bdf');

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

Authors


Report an issue
<< edf_get_equipment Functions for reading files edf_get_gender >>