How to start recording EEG data using EMOTIV when I press a 'start' button in a Matlab GUI?
9 次查看(过去 30 天)
显示 更早的评论
Dear all,
I don't really know where to start in order to solve this issue.
I've a GUI, a press the button 'start' and I want to start recording the data collected via Emotiv .
I found in the Emotiv folder the api folder containing the Matlab example, which has *.m files and *.h files.
I'm sorry I'm not expert in Matlab and I've never compiled using api before and I'm really lost.
I've searched in google, if someone have already done that, however, it seems that I don't have much luck, unfortunately!
Thanks in advance for any help someone might provide!
1 个评论
Jesús Daniel Olivares Figueroa
2020-11-18
Did you already know how to do it? I want to do the same and I am looking for how to do it.
采纳的回答
更多回答(1 个)
Christina Diersing
2021-11-3
So, I found it easiest to make a new csv file with only the timestamp and electrode data, then import that file into Matlab. I used this code:
% Importing csv data
T=readtable('Try 4.csv'); %This reads the csv data into a table named T
timestampOrig=T.Timestamp; %this makes timestampOrig equal to the original Timestamp
T.Timestamp=T.Timestamp-T.Timestamp(1); %This changes the official Timestamp column so it is 0 at the start of the recording
% Changes the sensor names from EEG_<sensor> to <sensor>
T.Properties.VariableNames(2:end)=extractAfter(T.Properties.VariableNames(2:end),'_');
Afterwards, you can use T.<sensor> to get the arrays of data for each electrode (ex. T.F7).
If you want to also get the interval markers you can use this code to import it:
Int=readtable('Event Marker Try 4_EPOCX_126368_2021.06.04T15.42.31.04.00_intervalMarker.csv');
EvtMar=Int.latency;
EvtMarLab=Int.type;
EvtLab=readtable('Try 4 Event Labels.xlsx');
table(EvtLab)
Where Int.latency will give you the latency for each interval and Int.type will give you the label of the marker (I found it easier to make an excel file that also lists the label and what abbreviation I used for each marker label in the plots).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!