Skip to Main Content Skip to Search
Product Documentation

convertto - Convert to specified frequency

Syntax

newfts = convertto(oldfts, newfreq)
newfts = convertto(oldfts, newfreq, 'param1','value1','param2',
'value2', ... )

Arguments

oldfts

Name of an existing financial time series object.

newfreq

1, DAILY, Daily, daily, D, d

2, WEEKLY, Weekly, weekly, W, w

3, MONTHLY, Monthly, monthly, M, m

4, QUARTERLY, Quarterly, quarterly, Q, q

5, SEMIANNUAL, Semiannual, semiannual, S, s

6, ANNUAL, Annual, annual, A, a

Description

convertto converts a financial time series of any frequency to one of a specified frequency.

newfts = convertto(oldfts, newfreq) converts the object oldfts to the new time series object newfts with the frequency newfreq.

Refer to the documentation for each frequency conversion function to determine the valid parameter/value pairs.

See Also

toannual | todaily | tomonthly | toquarterly | tosemi | toweekly

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS