Wrong Conversion problem from datenum
Afficher commentaires plus anciens
In a Serial data receiving process, I have a incoming data
press = {'2016-04-14' '14:18:48' '321'};
datenum(datestr(cellfun(@(x,y) [x y],press(1),press(2),'un',0)));
Here, the result of date time serial from above step,
ans = 7.3648e+05
When I convert back, the result is giving a different time into the future:
datestr(ans)
ans = 29-May-2016 22:18:48
where this is working wrong?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Time Series Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!