datevec datenum conversion problem
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
faber fenix
am 2 Jun. 2015
Kommentiert: Image Analyst
am 5 Jun. 2015
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?
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 2 Jun. 2015
Faber, looks good to me. 30h = 24h + 6h, in other words, the date corresponds to April 2, 6:00 AM.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Time Series Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!