Construct financial time series object
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)
 Columnoriented matrix containing one column of dates
and a single column for each series of data. In this format, dates
must be entered in serial date number format. If the input serial
date numbers encode timeofday information, the output object contains
a column labeled You can use the MATLAB^{®} function  
 Column vector of dates. Dates can be date strings or serial date numbers and can include time of day information. When entering timeofday information as serial date numbers, the entry must be a columnoriented matrix when multiple entries are present. If the timeofday information is in string format, the entry must be a columnoriented cell array of dates and times when multiple entries are present. Valid date and time string formats are:
Dates and times can initially be separate columnoriented
vectors, but they must be concatenated into a single columnoriented
matrix before being passed to  
 Columnoriented matrix containing a column for each series of data. The number of values in each data series must match the number of dates. If a mismatch occurs, MATLAB does not generate the financial time series object, and you receive an error message.  
 Cell array of data series names. Overrides the default
data series names. Default data series names are
 
 Frequency indicator. Allowed values are:
Default
=  
 String providing descriptive name for financial time
series object. Default = 
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
.
If the dates contain timeofday information, the object contains
an additional series of times. The date series and each data series
must each be 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(dates, data)
generates a financial
time series object containing dates from the dates
column
vector of dates and data from the matrix data. If the dates contain
timeofday information, the object contains an additional series
of times. The data matrix must be columnoriented, 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, data, datanames)
also
allows you to rename the data series. The names are specified in the 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, data, datanames, freq)
also
sets the frequency when you create the object. The desc
field
is set to its default ''
.
tsobj = fints(dates, data, datanames, freq, desc)
provides
a description string for the financial time series object.
Note:
