This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Lead time series object


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

Was this topic helpful?