Financial Derivatives Toolbox | ![]() ![]() |
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
.
load InstSetExamples; instdisp(ExampleInst) Index Type Strike Price Opt Contracts 1 Option 95 12.2 Call 0 2 Option 100 9.2 Call 0 3 Option 105 6.8 Call 1000 Index Type Delivery F Contracts 4 Futures 01-Jul-1999 104.4 -1000 Index Type Strike Price Opt Contracts 5 Option 105 7.4 Put -1000 6 Option 95 2.9 Put 0 Index Type Price Maturity Contracts 7 TBill 99 01-Jul-1999 6
See Also
datestr
in the Financial Toolbox User's Guide
num2str
in the online MATLAB Reference
![]() | instdelete | instfields | ![]() |