Git Product home page Git Product logo

edf-reader's Introduction

EDF-Reader

Allows users to read .edf EEG files in Matlab.

Reading small EDF files in Matlab is relatively easy and there are multiple methods available online to do so. However, when the EDF files are very large, these tools do not work nicely as they usually try to read the entire file into memory.

This EDF-Reader creates an object representing the EDF file, and provides random access to the data in the EDF-file. When you create the object, the EDF header is read into the object and the GETDATA method can be used to read (part) of the available data.

Example: Reading the first 10000 values of the second channel in 'newFile.edf'
  >> out = EDFData('newFile.edf')
    out = 
      EDFData with properties:
              ver: 0
        patientID: [1x80 char]
         recordID: [1x80 char]
        startDate: [1 1 70]
        startTime: [0 0 0]
            bytes: 4352
          records: 60
         duration: 0.9982
               ns: 16
            label: {1x16 cell}
       transducer: {1x16 cell}
            units: {1x16 cell}
        prefilter: {1x16 cell}
          samples: [1x16 double]
               sf: [1x16 double]
       conversion: [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
         dcOffset: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
         
  >> data = out.getData([1 10000],2);
      data =
           -23
            59
           111
           ...

Install: Add the @EDFData folder to the Matlab path.

edf-reader's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.