Construct cap instrument
InstSet = instcap(Strike,Settle,Maturity,Reset,Basis,Principal)
InstSet = instcap(InstSet,Strike,Settle,Maturity,CapReset,Basis,Principal)
[FieldList,ClassList,TypeString]
= instcap
| Instrument variable. This argument is specified only
when adding cap instruments to an existing instrument set. See |
| Rate at which the cap is exercised, as a decimal number. |
| Settlement date. Serial date number representing the settlement date of the cap. |
| Serial date number representing the maturity date of the cap. |
| (Optional) |
| (Optional) Day-count basis of the instrument. A vector of integers.
For more information, see Basis. |
| (Optional) |
InstSet = instcap(Strike,Settle,Maturity,Reset,Basis,Principal)
creates
a new instrument set containing cap instruments.
InstSet = instcap(InstSet,Strike,Settle,Maturity,CapReset,Basis,Principal)
adds cap instruments to an existing instrument set.
[FieldList,ClassList,TypeString]
= instcap
displays the classes.
FieldList
is a number of fields
(NFIELDS
-by-1
) cell array of character vectors
listing the name of each data field for this instrument type.
ClassList
is an NFIELDS
-by-1
cell
array of character vectors listing the data class of each field. The
class determines how arguments are parsed. Valid character vectors
are 'dble'
, 'date'
, and 'char'
.
TypeString
is a character vector specifying
the type of instrument added. For a cap instrument, TypeString
= 'Cap'
.
Use the optional argument, Principal
, to
pass a schedule for an amortizing cap.
hjmprice
| instaddfield
| instbond
| instdisp
| instfloor
| instswap
| intenvprice