How can we explain this error?
2 次查看(过去 30 天)
显示 更早的评论
First call no problem second call an error message.
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM');
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM');
Error using dtstr2dtvecmx
Failed on converting date string to date number.
Error in datevec (line 119)
y = dtstr2dtvecmx(t,icu_dtformat);
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM');
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM');
Error using dtstr2dtvecmx
Failed on converting date string to date number.
Error in datevec (line 119)
y = dtstr2dtvecmx(t,icu_dtformat);
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM');
119 y = dtstr2dtvecmx(t,icu_dtformat);
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM');
119 y = dtstr2dtvecmx(t,icu_dtformat);
Error using dtstr2dtvecmx
Failed on converting date string to date number.
Error in datevec (line 119)
y = dtstr2dtvecmx(t,icu_dtformat);
1 个评论
Wayne King
2012-8-9
I have no problem executing these lines. Can you please indicate which version of MATLAB, you are using.
回答(2 个)
per isakson
2012-8-10
I cannot reproduce the error with R2012a 64bit on Windows7.
>> datenumber = datevec('06/08/2012 15:20','dd/mm/yyyy HH:MM')
datenumber =
2012 8 6 15 20 0
0 个评论
Azzi Abdelmalek
2012-8-10
编辑:Azzi Abdelmalek
2012-8-10
check in your folder if a file named "datenumber" does'nt exist? if yes, rename it, restart matlab, i think it will be ok. or instead using a variable datenumber, change it.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!