%% Transform Time Series Object from Quarterly to Weekly Values
% This example shows how to transform a time series object from quarterly to weekly values.
% Load the data from the file predict_ret_data.mat and use the fints function to create a time series object with a quarterly frequency.

load predict_ret_data.mat
x0 = fints(expdates, expdata, {'Metric'}, 'q', 'Index')

%
% Use toweekly to obtain the weekly aggregate for the x0 times series.

x1 = toweekly(x0)

% Copyright 2015 The MathWorks, Inc.