EDFread giving an error Error using signal.int​ernal.edf.​validateED​F

Error using signal.internal.edf.validateEDF (line 55)
Expected Reserved to match one of these values:
'EDF+C', 'EDF+D', ''
The input, 'EDF', matched more than one valid value.
Error in edfread (line 113)
signal.internal.edf.validateEDF(filename, fileInfo, version, startDate, startTime,...
MatLab wont let me attach a file as edf so I have put it into a zip file. I cannot edit the file and when I used the public function it shortens the signal. I cannot edit the edfread function as it is an internal function. A work around would be greatly appreciated.
Thank you very much for your support
Regards,
Scot

10 comentarios

Haron Shaker
Haron Shaker el 2 de Nov. de 2020
Editada: Haron Shaker el 2 de Nov. de 2020
Same problem... How did you fixed it?
Jan
Jan el 24 de Jun. de 2021
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:07
I have the same error in Matlab 2021a.
Unfortunatelly, previously wokring edfRead by Brett Shoelson is not possible to use :(
Brett Shoelson
Brett Shoelson el 24 de Jun. de 2021
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:07
Why is the previously working edfRead by Brett Shoelson no longer possible to use?
Brett
Isaac Kafshkanan
Isaac Kafshkanan el 22 de Nov. de 2021
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:06
I am having a same issue as others
shams omar
shams omar el 30 de Mzo. de 2022
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:07
I have the same error in Matlab 2021a.
How did you fixed it?
Jennie Rodowicz
Jennie Rodowicz el 28 de Abr. de 2022
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:07
I am having this same error in 2021b
Rana Hamza
Rana Hamza el 28 de Abr. de 2022
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:07
I have the same error but trying to fix it soon and tell you accordingly
Brett Shoelson
Brett Shoelson el 28 de Abr. de 2022
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:07
Has anyone made an attempt to contact our tech support about this issue, see if they can help?
Brett
Roza
Roza el 3 de Oct. de 2022
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:06
How can I fix the following problem:
Error using signal.internal.edf.validateEDF
Expected Reserved to match one of these values:
'EDF', 'EDF+C', 'EDF+D', ''
The input, 'BIOSEMI', did not match any of the valid values.
Error in signal.internal.edf.edfinfo (line 27)
signal.internal.edf.validateEDF(filename, fileInfo, version,...
Error in edfinfo/readHeader (line 212)
~, ~] = signal.internal.edf.edfinfo('edfinfo', fid, ...
Error in edfinfo (line 173)
obj = readHeader(obj, filename, fid, fileInfo);
Toni
Toni el 9 de Nov. de 2022
Movida: Walter Roberson el 4 de Abr. de 2026 a las 18:06
Hi!
I have a similar problem, how did you fix it?

Iniciar sesión para comentar.

 Respuesta aceptada

William Carson
William Carson el 13 de Ag. de 2022
This relatively simple addition to the file validateEDF.m fixed this problem for me:
When I tried to read/load an EDF file using the edfread function I got the same error as OP:
Solution:
  1. Click on the underlined signal.interal.edf.validateEDF in the "Error using singal.internal.edf.validateEDF" error message displayed in the Command Window panel. A pop-up box/window will appear.
  2. In the upper right of the pop-up window that appears, click on the underlined View code for signal.internal.edf.validateEDF. The code file validateEDF.m should appear in the Editor panel.
  3. Scroll down to lines 70/71. This is the line of code that is resulting in the error.
  4. Change the second argument of the validatestring function from {'EDF+C', 'EDF+D', ''} to {'EDF', 'EDF+C', 'EDF+D', ''}
  5. Save the file validateEDF.m. A pop-up window may appear saying "validateEDF.m" is read only. Click on Overwrite for the changes to take effect.
Now, lines 70 and 71 of the file validateEDF.m should look like this:
This fixed the issue for me, and I was able to read EDF file contents using the edfread function. I primarily work in Python, so please take my MATLAB advice with grain of salt.

4 comentarios

why, when I click on signal.interal.edf.validateEDF no pop-up appears?
Thank you also, this allowed me to open some semi-broken EDF files that I had been sent which had all sorts of wierd strings in the 'Reserved' header entry.
Brilliant!
利军
利军 el 4 de Abr. de 2026 a las 17:10
You are so Brilliant! thank you very much!

Iniciar sesión para comentar.

Más respuestas (1)

Rashed Mohammed
Rashed Mohammed el 6 de Nov. de 2020
Hi Scot
I have brought this issue to the notice of our developers. They will investigate the matter further.

2 comentarios

Thank you very much
Regards,
Scot
The same problem still exist, whats the solution?

Iniciar sesión para comentar.

Categorías

Productos

Etiquetas

Preguntada:

el 29 de Oct. de 2020

Movida:

el 4 de Abr. de 2026 a las 18:07

Community Treasure Hunt

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

Start Hunting!

Translated by