Financial Derivatives Toolbox    
instfields

List fields

Syntax

Arguments

InstSet
Variable containing a collection of instruments. Instruments are classified by type; each type can have different data fields. The stored data field is a row vector or string for each instrument.
TypeList
(Optional) String or number of types (NTYPES)-by-1 cell array of strings listing the instrument types to query.

Description

FieldList = instfields(InstSet, 'Type', TypeList) retrieve list of fields stored in an instrument variable.

FieldList is a number of fields (NFIELDS)-by-1 cell array of strings listing the name of each data field corresponding to the listed types.

Examples

Retrieve the instrument set ExampleInst from the data file. InstSetExamples.mat. ExampleInst contains three types of instruments: Option, Futures, and TBill.

Get the fields listed for type 'Option'.

Get the fields listed for types 'Option' and 'TBill' .

Get all the fields listed in any type in the variable.

See Also

instdisp, instlength, insttypes


  instdisp instfind