ERROR in EDFwrite due to datestr() function

1 visualización (últimos 30 días)
Federico Del Gallo
Federico Del Gallo el 2 de Ag. de 2021
Comentada: Federico Del Gallo el 23 de Ag. de 2021
EDFwrite doesn't work correctly with the new version of Matlab (2021a 4).
When I run the EDFwrite I always get this error:
Error using datestr (line 131)
Not enough input arguments.
Error in edfwrite/getFileProperties (line 1738)
obj.FileModDate = string(datestr(fileInfo.datenum));
Error in edfwrite (line 502)
obj = getFileProperties(obj, fileInfo, true);
Is there someone who can kindly tell me how to fix it?
Thank you!
  2 comentarios
Peter Perkins
Peter Perkins el 2 de Ag. de 2021
Based on that error, it seems likely that fileInfo is empty for some reason. I cannot say why.
Federico Del Gallo
Federico Del Gallo el 3 de Ag. de 2021
Editada: Federico Del Gallo el 3 de Ag. de 2021
Yes maybe it is right, but the puzzling thing is that with the same file and same instructions with a previous version of MATLAB 2021a , I mean no the version with Update 4, everything works correctly.

Iniciar sesión para comentar.

Respuesta aceptada

Anshika Chourasia
Anshika Chourasia el 13 de Ag. de 2021
Hi,
In order to further investigate the issue, I need minimal reproducible code along with any EDF file so that the root of the error can be found.
However, the current and recommended workaround is to use 'cd' to change directory to the folder that contains the EDF file.
  1 comentario
Federico Del Gallo
Federico Del Gallo el 23 de Ag. de 2021
Thank you so much, using 'cd' to change directory, as you suggested, I fix the error.
Many thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre AI for Signals en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by