ERROR in EDFwrite due to datestr() function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Federico Del Gallo
am 2 Aug. 2021
Kommentiert: Federico Del Gallo
am 23 Aug. 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 Kommentare
Peter Perkins
am 2 Aug. 2021
Based on that error, it seems likely that fileInfo is empty for some reason. I cannot say why.
Akzeptierte Antwort
Anshika Chourasia
am 13 Aug. 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu AI for Signals finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!