Published March 14, 2018 | Version 0.5.0
Software Open

COCOHA Matlab Toolbox

  • 1. Laboratoire des Systèmes Perceptifs, UMR 8248, CNRS, Paris, France
  • 2. Department of Electrical Engineering, Danmarks Tekniske Universitet, Lyngby, Denmark
  • 3. Institute of Neuroinformatics, University of Zürich, Zürich, Switzerland


The COCOHA Matlab Toolbox is a coding framework internally shared within the COCOHA project. It was written to standardize MATLAB data storage and decoding analysis for the project. The data structure is based loosely on FieldTrip’s, but allows for the storage of multiple data sources (e.g. audio/EEG) and provides flexibility in defining dimensions (e.g. channel, time, frequency, rate, scale, etc). Moreover, function calls that modify the contents of the data structure will append their user-defined parameters to the data.cfg cell array. This allows for traceability of results.

The functions in the toolbox allow for external functions to operate on the data structure in a robust and standardized way.

The MATLAB components are designed for offline prototyping of decoding strategies. On the other hand, realtime processing is primarily implemented with OpenViBE Python scripts. OpenViBE is used as it provides drift correction, and its support for object-oriented programming allows better modularity.

The toolbox is not designed to replace FieldTrip for more traditional M/EEG analyses, but rather as a means to supplement such analyses with a support for decoding models. As such FieldTrip import capability is provided (and export capability is still pending).


Files (18.9 MB)

Name Size Download all
18.9 MB Preview Download

Additional details

Related works


COCOHA – Cognitive Control of a Hearing Aid 644732
European Commission