Convert to matrix
fts2mat will be removed in a future release. Use
timetable instead. For more information, see Convert Financial Time Series Objects fints to Timetables.
tsmat = fts2mat(tsobj) tsmat = fts2mat(tsobj,datesflag) tsmat = fts2mat(tsobj,seriesnames) tsmat = fts2mat(tsobj,datesflag,seriesnames)
Financial time series object
(Optional) Specifies inclusion of dates vector:
(Optional) Specifies the data series to be included in the matrix. Can be a cell array of character vectors.
tsmat = fts2mat(tsobj) takes the data series in the financial time
tsobj and puts them into the matrix
tsmat as columns. The order of the columns is the same as the
order of the data series in the object
tsmat = fts2mat(tsobj,datesflag) specifies whether you want the
dates vector included. The dates vector is the first column. The dates are represented
as serial date numbers. Dates can include time-of-day information.
tsmat = fts2mat(tsobj,seriesnames) extracts the data series named
seriesnames and puts its values into
seriesnames argument can be a cell array of character
tsmat = fts2mat(tsobj,datesflag,seriesnames) puts into
tsmat the specific data series named in
datesflag argument must be
datesflag is set to
1, the dates
vector is included. If you specify an empty matrix (
datesflag, the default behavior is adopted.