datevec datenum conversion problem
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
faber fenix
il 2 Giu 2015
Commentato: Image Analyst
il 5 Giu 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 Commenti
Risposta accettata
Mischa Kim
il 2 Giu 2015
Faber, looks good to me. 30h = 24h + 6h, in other words, the date corresponds to April 2, 6:00 AM.
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Time Series Objects in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!