Financial Time Series Toolbox    
tosemi

Convert to semiannual

Syntax

Description

newfts = tosemi(oldfts) converts a financial time series of any frequency to one of a semiannual frequency. tosemi sets the dates to the end of each semiannual time period (June 30 and December 31).

tosemi displays only the last date and last time of the end of each semiannual period.

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 newfts contains a date (e.g., June 30) that does not appear in oldfts, and oldfts contains time-of-day information, the time-of-day for that date is set to 00:00.

See Also

convertto, toannual, todaily, tomonthly, toquarterly, toweekly


  toquoted toweekly