datevec datenum conversion problem

조회 수: 9 (최근 30일)
faber fenix
faber fenix 2015년 6월 2일
댓글: Image Analyst 2015년 6월 5일
On my machine, using Matlab R2014a, datevec(datenum(x)) produces result different from x:
>> datevec(datenum([2007, 4, 1, 30, 0, 0]))
ans =
2007 4 2 6 0 0
Is this a bug, or am I doing something wrong?

채택된 답변

Mischa Kim
Mischa Kim 2015년 6월 2일
Faber, looks good to me. 30h = 24h + 6h, in other words, the date corresponds to April 2, 6:00 AM.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 6월 5일

faber's "Answer" moved here:

Great, thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by