Retime function creates new rowtimes going back to 1899
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Poison Idea fan
el 31 de Mayo de 2023
Editada: the cyclist
el 31 de Mayo de 2023
I have a timetable of data that I am trying to average to two minutes. When I use:
CO2_TT = retime(CO2_TT,'regular','mean','TimeStep',minutes(2));
It creates new row times going back to the year 1899. I've not seen this happen before and I use retime everyday. I have another timetable in the workspace that does not have this error. What would trigger this?
load CO2_TT.mat
CO2_TT = retime(CO2_TT,'regular','mean','TimeStep',minutes(2));
0 comentarios
Respuesta aceptada
the cyclist
el 31 de Mayo de 2023
Editada: the cyclist
el 31 de Mayo de 2023
You have a few dates from 1899 in your input data
load CO2_TT.mat
[minDateTime,indexToMinDatetime] = min(CO2_TT.DateTime)
CO2_TT(CO2_TT.DateTime==min(CO2_TT.DateTime),:)
Más respuestas (0)
Ver también
Categorías
Más información sobre Signal Generation and Preprocessing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!