Error with function "datenum" -- only works every other time.
显示 更早的评论
I am confused by why Matlab is giving me this error, but here is the situation:
datenum('20120701', 'yyyymmdd')
gives either the output "735051" (the correct answer) or this error:
Error using datenum (line 179)
DATENUM failed.
Caused by:
Error using dtstr2dtnummx
Failed on converting date string to date number.
The interesting thing is that it works half the time and gives the error half the time, and I don't understand why this would be happening.
Can anyone offer some insight?
回答(1 个)
Titus Edelhofer
2012-8-3
1 个投票
Hi,
if you happen to have a 64 Bit MATLAB it looks as if you got trapped by this bug: http://www.mathworks.com/support/bugreports/622845
Titus
类别
在 帮助中心 和 File Exchange 中查找有关 Time Series Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!