フィルターのクリア

I am getting Datenum failed error

8 ビュー (過去 30 日間)
Shubhra S
Shubhra S 2021 年 8 月 13 日
コメント済み: dpb 2021 年 11 月 10 日
My code is running properly on one system whereas in the other system I am getting the error datenum failed while running the same code. Both the system have same version installed.Error using dtstr2dtnummx failed to convert text to date. I have tried restarting system and reinstalling MATLAB still issue persists
  5 件のコメント
Peter Perkins
Peter Perkins 2021 年 11 月 8 日
編集済み: Peter Perkins 2021 年 11 月 8 日
There was a very old bug, fixed something like a decade ago, with failures for no apparent reason in that function (I think? maybe?), but not on all platforms. You really need to provide complete information. Data, and complete details of the platforms and MATLAB versions.
dpb
dpb 2021 年 11 月 10 日
The bug may have been an issue on occasion, but I don't recall a time that the above error wasn't owing to a date string in the input list not matching the format expected. This is most often the case if a specific string isn't provided and the routine builds its own based on parsing the file internally.

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

回答 (1 件)

Jan
Jan 2021 年 9 月 8 日
編集済み: Jan 2021 年 9 月 8 日
There is a difference. You do not tell, which difference it is, because you are not aware of what it is. The readers in the forum cannot find out, what it is, but you can.
Please give us an example of the failing data. The "dd/mm/yyyy" format means, that it is not a problem with the language of the month names, because numbers are used.

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by