Why does the DATENUM function return incorrect result in MATLAB 7.0 (R14)?
이전 댓글 표시
This behavior can be reproduced using the following commands:
1. use the DATESTR command to convert a date number to a date string:
datestr(1)
This returns the expected result:
ans =
01-Jan-0000
2. Reverse the action by using the DATENUM command to convert the output string back to a date number:
datenum(datestr(1))
The expected output should be 1; however, it is 367.
ans =
367
This error only affects the year 0000.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Time Series Objects에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!