Converting MUSE data into BV Analyzer format
You need MATLAB installed
You need EEGLAB installed (https://github.com/sccn/eeglab)
You need the bva-io plugin installed (best done through EEGLAB)
You need the following file from my GitHub (https://github.com/krigolson/MATLAB-EEG-fileIO):
doLoadMUSE.m
Once it is all installed, you are going to use the following command to load the MUSE .csv file into MATLAB. This assumes that the MUSE data is 4 columns reflecting the 4 channels (TP9, AF7, AF8, TP10).
[EEG] = doLoadMUSE(fileName,whichMuse)
This is where fileName is the name of the .csv file, and whichMuse specifies a Muse with a sampling rate of 220 Hz (whichMuse = 1) or 256 Hz (whichMuse = 0).
One the data is in, you will see the EEG variable in the workspace.
To write to BV Analyzer format, you use this command:
pop_writebva(EEG, outName)
The EEG variable already exists, you just created it. outName is whatever you want to call the BV data files (.vhdr, .vmrk, .eeg).
And that is it!
You need EEGLAB installed (https://github.com/sccn/eeglab)
You need the bva-io plugin installed (best done through EEGLAB)
You need the following file from my GitHub (https://github.com/krigolson/MATLAB-EEG-fileIO):
doLoadMUSE.m
Once it is all installed, you are going to use the following command to load the MUSE .csv file into MATLAB. This assumes that the MUSE data is 4 columns reflecting the 4 channels (TP9, AF7, AF8, TP10).
[EEG] = doLoadMUSE(fileName,whichMuse)
This is where fileName is the name of the .csv file, and whichMuse specifies a Muse with a sampling rate of 220 Hz (whichMuse = 1) or 256 Hz (whichMuse = 0).
One the data is in, you will see the EEG variable in the workspace.
To write to BV Analyzer format, you use this command:
pop_writebva(EEG, outName)
The EEG variable already exists, you just created it. outName is whatever you want to call the BV data files (.vhdr, .vmrk, .eeg).
And that is it!