ERROR in EDFwrite due to datestr() function
조회 수: 1 (최근 30일)
이전 댓글 표시
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
Peter Perkins
2021년 8월 2일
Based on that error, it seems likely that fileInfo is empty for some reason. I cannot say why.
채택된 답변
Anshika Chourasia
2021년 8월 13일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 AI for Signals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!