How to convert cdf epoch to date and time?
7 次查看(过去 30 天)
显示 更早的评论
I have a column of data which is in cdf epoch format. It contains date and time stamps Is there a simple way for me to convert and extract the date and time from the cdfepoch object ( data_import(:,1) ) and replace them into column 1? I am trying to plot data over time, cant seem to do this easily.
0 个评论
回答(1 个)
Reko Hynönen
2017-6-12
编辑:Reko Hynönen
2017-6-12
Sorry to revive an old topic, but I came here looking for an answer and didn't find it, as it has been left unanswered. I think I've solved the issue though.
I believe that todatenum function solves the problem nicely.
https://se.mathworks.com/help/matlab/ref/todatenum.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!