Main Content
lag
Time-shift data in timetable
Description
TT2 = lag(
shifts the data in each
variable in TT1
)TT1
forward in time by one time step. A shift forward
in time is a lag. The row times of TT1
must
be regular.
The timetables TT1
and TT2
have the same row
times. When you shift the data in each variable forward, lag
fills the first row of TT2
with missing data indicators.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2016b