/images/avatar_square.jpg

Expanding the Simulink patch

In the last post we used Unity to send a `1` to Simulink. In Simulink this was received as the number 49. In this post we are going to expand the Simulink patch to make the number (49) more useful in our dataset and prepare for the use of EEG to measure P300. We are going to use g.tec’s `gBSanalyze` to analyze P300 data and to do that we need a dataset.

Simulink

Introduction As I’ve been starting to work with EEG/BCI and especially P300, I’ve gone back to using trusty old MATLAB for programming. Previously I’ve only been using matlab for calculation and simple statistics but now I’m starting to use it for Simulink. So this will be an intro to Simulink and a guide in how to use Simulink with Unity. Implementation First let’s create a new Simulink window in Matlab and add a few objects.