How to convert cdf epoch to date and time?

7 visualizaciones (últimos 30 días)
BenL
BenL el 14 de Nov. de 2015
Editada: BenL el 13 de Jun. de 2017
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.

Respuestas (1)

Reko Hynönen
Reko Hynönen el 12 de Jun. de 2017
Editada: Reko Hynönen el 12 de Jun. de 2017
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

Categorías

Más información sobre Time Series Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by