Financial Time Series Toolbox | ![]() ![]() |
Syntax
Description
newfts = toannual(oldfts)
converts a financial time series of any frequency to one of an annual frequency. toannual
sets the dates to the end of the year (December 31).
toannual
displays only the last date and last time of the end of the year.
If oldfts
does not contain time-of-day data, newfts
does not contain a times
vector.
If oldfts
contains time-of-day data, newfts
contains a times
vector that replicates the times in oldfts
.
If December 31 for a particular year does not appear in oldfts
, and oldfts
contains time-of-day information, the time-of-day for that specific date is set to 00:00
.
See Also
convertto
, todaily
, tomonthly
, toquarterly
, tosemi
, toweekly
![]() | times | todaily | ![]() |