image thumbnail


version (8.02 KB) by Brett Shoelson
A simple file reader for European Data Formatted (EDF-) files.


Updated 05 Aug 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The edfRead() functionality in this submission is now officially provided by the Signal Processing Toolbox as of R2020b. This File Exchange submission is no longer supported

Read European Data Format file into MATLAB

[hdr, record] = edfread(fname)
Reads data from ALL RECORDS of file fname ('*.edf'). Header information is returned in structure hdr, and the signals (waveforms) are returned in structure record, with waveforms associated with the records returned as fields titled 'data' of structure record.

NOTE: Support for this function is being deprecated. Please see:

[...] = edfread(fname, 'assignToVariables', assignToVariables)
Triggers writing of individual output variables, as defined by field 'labels', into the caller workspace.
[...] = edfread(fname, 'targetSignals', targetSignals,...)
Allows the user to specify by name or index the subset of signals to import.

PLEASE NOTE: I have also uploaded on the File Exchange EDFReadUntilDone. If you have problems reading large files with EDFRead, please download and try that one!

Cite As

Brett Shoelson (2021). edfRead (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
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!