3.0 | 1 rating Rate this file 40 Downloads (last 30 days) File Size: 5.75 KB File ID: #36530

Read / Write EDF+-Files



04 May 2012 (Updated )

Read / Write EDF+-Files

| Watch this File

File Information

Code to read and write EEG-edf+ files. I modified existing code to read simple edf-files for support of edf+ (including annotations)


This file inspired Block Edf Load.

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
08 Jul 2013 Rune Paamand

Bug in line 134: Please move line 128 below the 128-130 if statement, as the statement will chance eventchannels and prevent a proper reshape due to size change.

29 May 2012 Jesús Lucio

Good work, but I find some bugs:

In lab_read_edf.m, lines 83-84: positions are repeated from line 82, thus mistaken. They should be (180:181) and (183:184), respectively.

In lab_read_edf.m, line 139:
data = reshape(data,hdr.numbersperrecord(1),hdr.channels,hdr.records);
I get an error. It is because the number of samples may be different in each record.

07 May 2012

fixed some bugs in write_edf

07 May 2012

Optimized read_edf to support scale and DC of data

17 Sep 2012

updated read_edf to support misc 'number of records'

02 Oct 2012

updated lab_read_edf to support again edf-files without annotations (broken since last update)

08 Jul 2013

8.7.2013: corrected bug in lab_write_edf (thanks to Rune Paamand)

07 Jul 2014

Corrected a bug in lab_write_edf (last lines of code had to be deleted)

Contact us