필터 지우기
필터 지우기

How to plot Marker data in MatLab

조회 수: 1 (최근 30일)
Yasir Khan
Yasir Khan 2016년 7월 24일
댓글: Walter Roberson 2016년 7월 24일
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
Image Analyst
Image Analyst 2016년 7월 24일
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.
Walter Roberson
Walter Roberson 2016년 7월 24일
Perhaps you want to use them as legend entries?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by