File Exchange

image thumbnail


A flexible EDF file loader for accessing header information and signal data.


Updated 27 Jan 2014

View License

An efficient EDF loader is provided that allow the user several options for accessing header and signal information stored in an EDF file.

User can select specific signals and specific 30 second epochs to return, which are used in sleep applications.

header = blockEdfLoad(edfFN)
[header, signalHeader] = blockEdfLoad(edfFN)
[header, signalHeader, signalCell] = blockEdfLoad(edfFN)
[header, signalHeader, signalCell] = blockEdfLoad(edfFN, signalLabels)
[header, signalHeader, signalCell] = blockEdfLoad(edfFN, signalLabels, epochs)

Comments and Ratings (8)

David Lee

Hi. Dennis, I downloaded this BlockEDFLoad, but then what is the steps of load mt EEG .edf format signal into MATLAB for signal processing ? Thanks

Thank you Dennis, it works very well.

Thank you Dennis. Your code is very useful.

The program returns the selected sections(signals and 30 second epochs). The current version loads the entire file. It would be straight forward to load only the selected sections. Please email directly if you would like to discuss further.


Can I read with this function a samll part from a large EDF file, which can not be loaded entirely?

Use this version for quick access to the EDF contents.

Rajeev Yadav

Thanks Dennis, I will revise my code and will follow your implementation to make the GUI simpler.



Revision adds digital to physical conversion.

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux