Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

fieldnames - Get names of fields

Syntax

fnames = fieldnames(tsobj)
fnames = fieldnames(tsobj, srsnameonly)

Arguments

tsobj

Financial time series object

srsnameonly

Field names returned:

0 = All field names (default).

1 = Data series names only.

Description

fieldnames gets field names in a financial time series object.

fnames = fieldnames(tsobj) returns the field names associated with the financial time series object tsobj as a cell array of strings, including the common fields: desc, freq, dates (and times if present).

fnames = fieldnames(tsobj, srsnameonly) returns field names depending upon the setting of srsnameonly. If srsnameonly is 0, the function returns all field names, including the common fields: desc, freq, dates, and times. If srsnameonly is set to 1, fieldnames returns only the data series in fnames.

See Also

chfield, getfield, isfield, rmfield, setfield

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS