BrainAccess EEG Now Speaks MATLAB - BrainAccess

BrainAccess EEG Now Speaks MATLAB

Martina Berto Avatar

We’re excited to announce the release of the BrainAccess MATLAB API, a native toolbox that lets you connect to BrainAccess EEG devices and acquire data directly from desktop MATLAB.

Until now, working with BrainAccess hardware meant stepping into Python, C, or relying on the LSL MATLAB toolbox. That’s a great fit for a lot of workflows, but MATLAB is still the day-to-day language of many neuroscientists’ and engineers’ pipelines, and switching environments adds unnecessary friction. Not anymore.

What’s new

The MATLAB API mirrors the structure of our Python API, so if you’ve used one, the other will feel instantly familiar.

It’s built around a small set of straightforward ba_* functions covering the essentials:

  • Initializing the runtime
  • Scanning for and connecting to a device over Bluetooth
  • Configuring EEG channels and sample rate
  • Starting and stopping a stream
  • Pulling data into MATLAB arrays, chunk by chunk or over a fixed duration

A minimal acquisition loop looks like this:

ba_setup();
ba_init();

devices = ba_scan();
ba_connect(devices(1).name);

features = ba_get_device_features();
ba_configure_eeg(0:(features.electrode_count - 1), 250, 8, []);

ba_start_stream();
[data, meta] = ba_collect_seconds(5.0, 250, true);
ba_stop_stream();

ba_disconnect();
ba_close();

plot(data');

Why it matters

This means your BrainAccess data can now flow straight into the MATLAB tools you already trust — Signal Processing Toolbox, EEGLAB, custom analysis pipelines — without an export/import step in between. The API also supports session annotations and saving straight to .mat files, so real-time tagging and downstream analysis stay in one environment.

The toolbox installs like any other MATLAB add-on and supports the standard desktop MATLAB platforms. If you’ve been waiting to bring BrainAccess into your MATLAB pipeline, now’s the time to give it a spin.

We’d love to know what you’ll build with it!  🚀

Get the Update

Download the MATLAB API now!

Get the toolbox from the Download Centre.
Installation is a single .mltbx package for desktop MATLAB (R2025b or newer). Full setup steps and the API reference are in the documentation.

Download Centre →

Documentation →

MORE Posts
  • From Jena to Jena: A Short History of EEG

    From Jena to Jena: A Short History of EEG

    In 1924, a flickering line on a strip of paper in a Jena hospital room started the field of EEG. A hundred years later, we’re telling that story and revealing why we just named our new update after the city where it all began. On July 6, 1924, in a room at the University Hospital…

  • Understanding Hyperscanning and Why BrainAccess Is Built for It

    Understanding Hyperscanning and Why BrainAccess Is Built for It

    Hyperscanning means recording EEG from two or more people at once while they interact, instead of studying one brain at a time. Researchers use it to see whether people’s brain activity synchronize during things like music duets, cooperative or competitive games, and even flight simulations with pilot pairs. Running these studies is technically tricky, since…

  • Can a VR Headset Make You a Better Footballer? A Study with BrainAccess MAXI Says Yes

    Can a VR Headset Make You a Better Footballer? A Study with BrainAccess MAXI Says Yes

    As football takes center stage with the World Cup 2026 underway, an interesting question emerges: how should the next generation of players train? A recent preprint from Turkish researchers found that young professional footballers who trained with VR outperformed those using traditional methods in balance, speed, and strength, with measurable neurological changes tracked via the…

  • A Guide to EEG Electrode Placement: The 10–20 System Explained

    A Guide to EEG Electrode Placement: The 10–20 System Explained

    If you are thinking about conducting EEG research, you may have come across the term International 10–20 System, often used when referring to electrode positions on an EEG cap. But what does it actually mean? In this article we provide a short overview and discuss why it still so important in EEG research today. Electroencephalography…