| Financial Toolbox | ![]() |
www.kxcad.net Home > CAE Software Index > MATLAB Index >
Financial time series object information
ftsinfo(tsobj) infofts = ftsinfo(tsobj)
tsobj | Financial time series object. |
ftsinfo(tsobj) displays information about the financial time series object tsobj.
infofts = ftsinfo(tsobj) stores information about the financial time series object tsobj in the structure infofts.
infofts has these fields.
Field | Contents |
|---|---|
version | Financial time series object version. |
desc | Description of the time series object (tsobj.desc). |
freq | Numeric representation of the time series data frequency (tsobj.freq). See freqstr for list of numeric frequencies and what they represent. |
startdate | Earliest date in the time series. |
enddate | Latest date in the time series. |
seriesnames | Cell array containing the time series data column names. |
ndata | Number of data points in the time series. |
nseries | Number of columns of time series data. |
Convert the supplied file disney.dat into a financial time series object named dis:
dis = ascii2fts('disney.dat', 1, 3);
Now use ftsinfo to obtain information about dis:
ftsinfo(dis)
FINTS version: 2.0
Description: Walt Disney Company (DIS)
Frequency: Unknown
Start date: 29-Mar-1996
End date: 29-Mar-1999
Series names: OPEN
HIGH
LOW
CLOSE
VOLUME
# of data: 782
# of series: 5
Then, executing
infodis = ftsinfo(dis)
creates the structure infodis containing the values
infodis =
ver: '2.0'
desc: 'Walt Disney Company (DIS)'
freq: 0
startdate: '29-Mar-1996'
enddate: '29-Mar-1999'
seriesnames: {5x1 cell}
ndata: 782
nseries: 5
fints, freqnum, freqstr, ftsbound
| ftsgui | ftstool | ![]() |
© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments