How can we explain this error?

조회 수: 1 (최근 30일)
Omer Demirkaya
Omer Demirkaya 2012년 8월 9일
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
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
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

Azzi Abdelmalek
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.

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by