| Financial Time Series | ![]() |
Construct financial time series object
Syntax
tsobj = fints(dates_and_data) tsobj = fints(dates, data) tsobj = fints(dates,data, datanames) tsobj = fints(dates,data, datanames, freq) tsobj = fints(dates,data, datanames, freq, desc)
Arguments
Description
fints constructs a financial time series object. A financial time series object is a MATLAB object that contains a series of dates and one or more series of data. Before you perform an operation on the data, you must set the frequency indicator (freq). You can optionally provide a description (desc) for the time series.
tsobj = fints(dates_and_data)
creates a financial time series object containing the dates and data from the matrix dates_and_data. The dates and data in the input matrix must be column oriented; the dates series and each data series is a column in the input matrix. The names of the data series default to series1, ..., seriesn. The desc and freq fields are set to their defaults.
tsobj = fints( generates a financial time series object containing dates from the dates, data)
dates column vector of dates and data from the matrix data. The data matrix must be column oriented, that is, each column in the matrix is a data series. The names of the series default to series1, ..., seriesn, where n is the total number of columns in data. The desc and freq fields are set to their defaults.
tsobj = fints(dates, additionally allows you to rename the data series. The names are specified in the data, datanames)
datanames cell array. The number of strings in datanames must correspond to the number of columns in data. The desc and freq fields are set to their defaults.
tsobj = fints(dates, additionally sets the frequency when you create the object. The data, datanames, freq)
desc field is set to its default ''.
tsobj = fints(dates, provides a description string for the financial time series object.data, datanames, freq, desc)
See Also
datenum, datestr in the Financial Toolbox User's Guide
| filter | fpctkd | ![]() |