How to plot Marker data in MatLab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi. I want to know how I can plot the marker data from an EDF file in MatLab.
So I use edfread to convert the EDF file :
[header, data] = edfread('Subject1.edf');
and then I get the below after typing in header
ver: 0
patientID: '1 '
recordID: '1 '
startdate: '11.07.16'
starttime: '07.52.30'
bytes: 9472
records: 948
duration: 1
ns: 36
label: {1x36 cell}
transducer: {1x36 cell}
units: {1x36 cell}
physicalMin: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
physicalMax: [1x36 double]
digitalMin: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
digitalMax: [1x36 double]
prefilter: {1x36 cell}
samples: [1x36 double]
the marker is in label, so I access it by typing in
header.label
which gives me the below
>> hdr.label
ans =
Columns 1 through 13
'COUNTER' 'INTERPOLATED' 'AF3' 'F7' 'F3' 'FC5' 'T7' 'P7' 'O1' 'O2' 'P8' 'T8' 'FC6'
Columns 14 through 24
'F4' 'F8' 'AF4' 'RAW_CQ' 'CQ_AF3' 'CQ_F7' 'CQ_F3' 'CQ_FC5' 'CQ_T7' 'CQ_P7' 'CQ_O1'
Columns 25 through 34
'CQ_O2' 'CQ_P8' 'CQ_T8' 'CQ_FC6' 'CQ_F4' 'CQ_F8' 'CQ_AF4' 'CQ_CMS' 'CQ_DRL' 'GYROX'
Columns 35 through 36
'GYROY' 'MARKER'
hdr.label{end} returns the marker string, but I want to know how I can view the values of markers and possibly even plot them.
2 comentarios
Image Analyst
el 24 de Jul. de 2016
The values are strings. So what does it mean to plot strings? You can display the strings using the text() function - maybe that's what you want.
Respuestas (0)
Ver también
Categorías
Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!