Issue with edfread - "The input, '2021-06-04T15:42:31.188466-04:00', did not match any of the valid values."
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi,
I'm trying to read an EDF file from an Emotiv EPOC, but I keep getting the same error when I try to use edfread. I have tried renaming the edf file so it didn't have the date in the title, but that didn't help (so I had the name as 'Event_Marker_Try_4_EPOCX.edf'). I still got this same error. I need to use the EDF format because that gives an accurate timestamp (vs the CSV file). Does anyone know how I can fix this issue?
Thank You!
댓글 수: 2
채택된 답변
Walter Roberson
2021년 7월 10일
Positions 193 to 236 of the file must be 'EDF+C' or 'EDF+D' or blank, but instead it is that particular time.
The program does not believe that your file is a valid EDF or EDF+ file.
댓글 수: 9
Walter Roberson
2021년 7월 11일
The edf file is not compliant with EDF or EDF+ . In particular, the "reserved" field must be:
‘reserved’: empty for EDF; ‘EDF+C’ for continuous recording; ‘EDF+D’ if the recording is interrupted.
However, instead it is a time specification.
추가 답변 (1개)
Christina Diersing
2021년 7월 11일
댓글 수: 1
Walter Roberson
2021년 7월 11일
T = readtable('Try 4.csv');
T.dt = datetime(T.Timestamp,'convertfrom', 'posixtime','format', 'dd-MMM-yyyy HH:mm:ss.SSSSSS');
timestamp = T.dt - T.dt(1);
AF3=T.EEG_AF3; F7=T.EEG_F7;
F3=T.EEG_F3; FC5=T.EEG_FC5;
T7=T.EEG_T7; P7=T.EEG_P7;
O1=T.EEG_O1; O2=T.EEG_O2;
P8=T.EEG_P8; T8=T.EEG_T8;
FC6=T.EEG_FC6; F4=T.EEG_F4;
F8=T.EEG_F8; AF4=T.EEG_AF4;
plot(timetamp, [AF3, F7, F3, FC5, T7, P7, O1, O2, P8, T8, FC6, F4, F8, AF4]);
legend({'AF3', 'F7', 'F3', 'FC5', 'T7', 'P7', 'O1', 'O2', 'P8', 'T8', 'FC6', 'F4', 'F8', 'AF4'});
xlabel('Timestamp (s)');
ylabel('EEG Value (uV)');
참고 항목
카테고리
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!