ERROR in EDFwrite due to datestr() function

1 回表示 (過去 30 日間)
Federico Del Gallo
Federico Del Gallo 2021 年 8 月 2 日
コメント済み: Federico Del Gallo 2021 年 8 月 23 日
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
Peter Perkins 2021 年 8 月 2 日
Based on that error, it seems likely that fileInfo is empty for some reason. I cannot say why.
Federico Del Gallo
Federico Del Gallo 2021 年 8 月 3 日
編集済み: Federico Del Gallo 2021 年 8 月 3 日
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.

サインインしてコメントする。

採用された回答

Anshika Chourasia
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.
  1 件のコメント
Federico Del Gallo
Federico Del Gallo 2021 年 8 月 23 日
Thank you so much, using 'cd' to change directory, as you suggested, I fix the error.
Many thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAI for Signals についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by