File Exchange

image thumbnail


version (8.1 KB) by Dennis A. Dean, II, Ph.D.
A flexible EDF file loader for accessing header information and signal data.


Updated 27 Jan 2014

View Version History

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)

Cite As

Dennis A. Dean, II, Ph.D. (2021). blockEdfLoad (, MATLAB Central File Exchange. Retrieved .

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

Octavian Curea

Thank you Dennis, it works very well.

Sutrisno Ibrahim

Thank you Dennis. Your code is very useful.

Rami Khushaba

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.


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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!