4.0

4.0 | 3 ratings Rate this file 41 Downloads (last 30 days) File Size: 6.59 KB File ID: #38641
image thumbnail

Reading and saving of data in the EDF+

by

 

16 Oct 2012 (Updated )

Reading and saving of multichannel biological and physical signals in the European Data Format (EDF)

| Watch this File

File Information
Description

The European Data Format (EDF) is a simple and flexible format for exchange and storage of multichannel biological and physical signals.

The code is intended for reading and saving of data in the EDF+.

[data, header] = readEDF(filename)

SaveEDF(filename, data, header)

% filename - EDF+ file name (*.edf)

% data - Contains a signals matrix or cell conteins signals data

% header - Contains header structure

http://www.edfplus.info/

Acknowledgements

This file inspired Block Edf Load.

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
22 Jul 2014 Jakub

I believe there is an error in line 76 of << ReadEDF.m >>.

The file as-downloaded has the following:
Rs=cumsum([1; header.duration*header.samplerate]);

This is incorrect because << header.duration >> does not have to be an integer. The result is that an error occurs when the values of Rs are used to denote vector indices in line 84: Ch_data(Rs(k):Rs(k+1)-1, :)

The correct form of line 76 should be:
Rs=cumsum([1; header.samplerate]);

22 Jul 2014 Helio

Dear Andrey I'm very grateful to have found your routines. I've been dealing with edf+ annotations for a while and your reader works just flawless. Thanks a lot for sharing!

15 Apr 2014 Mark Skopin

Please disregard my previous comment. I got it to work. The startime and startdate fields were not all in lowercase. Great functions and very useful! Thanks again!

Updates
17 Oct 2012

Screenshot update

14 Jun 2013

Products Required change

Contact us