Financial Derivatives Toolbox    
instdisp

Display instruments

Syntax

Arguments

InstSet
Variable containing a collection of instruments. See instaddfield for examples on constructing the variable.

Description

CharTable = instdisp(InstSet) creates a character array displaying the contents of an instrument collection, InstSet. If instdisp is called without output arguments, the table is displayed in the command window.

CharTable is a character array with a table of instruments in InstSet. For each instrument row, the Index and Type are printed along with the field contents. Field headers are printed at the tops of the columns.

Examples

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

See Also

datestr in the Financial Toolbox User's Guide

num2str in the online MATLAB Reference

instaddfield, instget


  instdelete instfields