how to lag timetable to the nearest day

1 visualización (últimos 30 días)
pooria mazaheri
pooria mazaheri el 1 de Nov. de 2018
Respondida: Peter Perkins el 6 de Nov. de 2018
i have this timetable how can i lag this timetable to the nearest day(the present day is '01-Mar-2018' and the nearest day is '06-Mar-2018')
  1 comentario
Kevin Chng
Kevin Chng el 1 de Nov. de 2018
What do you mean lag here? All the date replaced by the next nearest date?

Iniciar sesión para comentar.

Respuestas (1)

Peter Perkins
Peter Perkins el 6 de Nov. de 2018
"Lag" means different things to different people.
You might mean, "round the row times to the nearest whole day." Just apply dateshift to the row times.
You might mean, "interpolate the data at whole days." Use retime.
"Lag" usually means, "shift the data down one observation, keeping the same row times." The lag function does that, but I don't think that's what you want.

Categorías

Más información sobre Calendar en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by