edfopen_file_readonly — Opens an new file for reading.
[header_list]=edfopen_file_readonly(path, read_annotations)
: string containing the path and name of the file
: 0 = annotations will not be read (this saves time when opening a very large EDFplus or BDFplus file)
: 1 = annotations will be read immediately, stops when an annotation has been found which contains the description "Recording ends"
: 2 = all annotations will be read immediately
: mlist, filled with all the relevant header- and signalinfo/parameters
Opens an new file for reading. If the opening was succesful, a header_list which is filled with all the relevant header- and signalinfo/parameters will be given back. The list contains a "handle" (header_list("handle")) which you need for the other functions.
content of the header_list:
handle
filetype : 0: EDF, 1: EDFplus, 2: BDF, 3: BDFplus, a negative number means an error
edfsignals : number of signals in the file
file_duration : duration of the file expressed in Seconds
startdatetime
patient
recording
patientcode
gender
birthdate
patient_name
patient_additional
admincode
technician
equipment
recording_additional
datarecord_duration : duration of a datarecord expressed in Seconds
datarecords_in_file
annotations_in_file
for each edfsignal:
label
smp_in_file
phys_max
phys_min
dig_max
dig_min
smp_in_datarecord : samples in one datarecord
physdimension
prefilter
transducer