leadts
Lead time series object
leadts
is not recommended. Use timetable
instead. For more information, see Convert Financial Time Series Objects fints to Timetables.
Syntax
Description
shifts time series values to the left on an increasing time scale.
newfts
= leadts(oldfts
,leadperiod
)leadts
advances the data series to happen at an earlier time.
leadperiod
is the number of lead periods expressed in the
frequency of the time series object oldfts
. For example, if
oldfts
is a daily time series,
leadperiod
is specified in days. leadts
pads the data with zeros (default).
lets you pad the data with an arbitrary value, newfts
= leadts(oldfts
,leadperiod
,padmode
)NaN
, or
Inf
rather than zeros by setting padmode
to the desired value.