[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Matlab wrappers

A set of wrappers for Matlab has been written and contributed by Jonas Carlson. These wrappers (wfdb_tools) provide access to almost all of the functionality of the WFDB library, including HTTP access to remote data files, to users of Matlab R13 (but not earlier versions) under GNU/Linux, Mac OS X, and MS-Windows; other platforms remain to be tested. The wrappers, together with examples and a tutorial/reference guide, are available from http://www.physionet.org/physiotools/matlab/wfdb_tools/. Using the wfdb_tools wrappers, the example program can be written in Matlab as:

 
        S = WFDB_isigopen('100s')
        DATA = WFDB_getvec(length(S), 10)

Note that length(S) is the number of available signals as determined by WFDB_isigopen (which becomes the number of columns in DATA).

It should be possible to write a set of wrapper functions similar to wfdb_tools for use with Octave (a freely available open-source language that is compatible with Matlab, available from http://www.che.wisc.edu/octave/) or Scilab (an open-source scientific software package for numerical computations, with a language similar to that of Matlab, available from http://www-rocq.inria.fr/scilab/). Jesus Olivan Palacios has written a tutorial (available at http://www.neurotraces.com/scilab/sciteam/) on using the WFDB Software Package with Scilab.

Also available is a reimplementation of a useful subset of the WFDB library in native m-code (contributed by Jose Garcia Moros and Salvador Olmos) at http://www.physionet.org/physiotools/matlab/.



George B. Moody (george@mit.edu)