Problem with function "datenum"
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hello all,
I use a script where datenum is used, but it works randomly:
>> datenum('17:54:24.752','HH:MM:SS.FFF')
??? Error using ==> datenum at 174
DATENUM failed.
Caused by:
Error using ==> dtstr2dtnummx
Failed on converting date string to date number.
>> datenum('17:54:24.752','HH:MM:SS.FFF')
ans =
7.3597e+005
What could cause that? The date format was used planty of times before.
2 件のコメント
per isakson
2015 年 10 月 13 日
編集済み: per isakson
2015 年 10 月 13 日
Most likely the problem is caused by an erroneous value of an input argument. See Debug a MATLAB Program
Stephen23
2015 年 10 月 13 日
Could there be non-printing characters in the string? These often pop up in online sourced data or from spreadsheets, and could easily cause an error without being visible themselves.
回答 (1 件)
Peter Perkins
2015 年 10 月 13 日
編集済み: Peter Perkins
2015 年 10 月 13 日
0 投票
The bug report includes a patch for earlier versions.
3 件のコメント
Peter Perkins
2015 年 10 月 16 日
Click on the bug report I linked to.
Walter Roberson
2015 年 10 月 16 日
Unfortunately the bug report does not appear to include patches for R2009a or R2009b.
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!