Wrong Conversion problem from datenum
显示 更早的评论
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?
采纳的回答
更多回答(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!