Issue with edfread - "The input, '2021-06-04T15:42:31.188466-04:00', did not match any of the valid values."
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Christina Diersing
el 10 de Jul. de 2021
Comentada: Walter Roberson
el 11 de Jul. de 2021
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 comentarios
Yongjian Feng
el 10 de Jul. de 2021
The time format does look good. Try to validate your edf file first.
Respuesta aceptada
Walter Roberson
el 10 de Jul. de 2021
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 comentarios
Walter Roberson
el 11 de Jul. de 2021
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.
Más respuestas (1)
Christina Diersing
el 11 de Jul. de 2021
1 comentario
Walter Roberson
el 11 de Jul. de 2021
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)');
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!