How to start recording EEG data using EMOTIV when I press a 'start' button in a Matlab GUI?
조회 수: 11 (최근 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!