Main Content


Lead time series object

leadts is not recommended. Use timetable instead. For more information, see Convert Financial Time Series Objects fints to Timetables.


newfts = leadts(oldfts)
newfts = leadts(oldfts,leadperiod)
newfts = leadts(oldfts,leadperiod,padmode)



Financial time series object.


Number of lead periods expressed in the frequency of the time series object.


Data padding value.


leadts advances a financial time series object by a specified time step.

newfts = leadts(oldfts) advances the data series in oldfts by one time series date entry and returns the result in the object newfts. The end will be padded with zeros, by default.

newfts = leadts(oldfts,leadperiod) shifts time series values to the left on an increasing time scale. 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).

newfts = leadts(oldfts,leadperiod,padmode) lets you pad the data with an arbitrary value, NaN, or Inf rather than zeros by setting padmode to the desired value.

Introduced before R2006a