how to lag timetable to the nearest day

조회 수: 1 (최근 30일)
pooria mazaheri
pooria mazaheri 2018년 11월 1일
답변: Peter Perkins 2018년 11월 6일
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
Kevin Chng
Kevin Chng 2018년 11월 1일
What do you mean lag here? All the date replaced by the next nearest date?

댓글을 달려면 로그인하십시오.

답변 (1개)

Peter Perkins
Peter Perkins 2018년 11월 6일
"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.

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by