| Financial Derivatives Toolbox™ | ![]() |
InstSet = instbond(InstSet, CouponRate,
Settle, Maturity,
Period, Basis,
EndMonthRule, IssueDate, FirstCouponDate,
LastCouponDate, StartDate, Face)
[FieldList, ClassList, TypeString]
= instbond
Instrument variable. This argument is specified only when adding bond instruments to an existing instrument set. See instget for more information on the InstSet variable. | |
Decimal number indicating the annual percentage rate used to determine the coupons payable on a bond. | |
Settle | Settlement date. A vector of serial date numbers or date strings. Settle must be earlier than Maturity. |
Maturity | Maturity date. A vector of serial date numbers or date strings. |
Period | (Optional) Coupons per year of the bond. A vector of integers. Allowed values are 1, 2, 3, 4, 6, and 12. Default = 2. |
Basis | (Optional) Day-count basis of the instrument. A vector of integers.
|
EndMonthRule | (Optional) End-of-month rule. A vector. This rule applies only when Maturity is an end-of-month date for a month having 30 or fewer days. 0 = ignore rule, meaning that a bond's coupon payment date is always the same numerical day of the month. 1 = set rule on (default), meaning that a bond's coupon payment date is always the last actual day of the month. |
(Optional) Date when a bond was issued. | |
FirstCouponDate | (Optional) Date when a bond makes its first coupon payment. When FirstCouponDate and LastCouponDate are both specified, FirstCouponDate takes precedence in determining the coupon payment structure. |
LastCouponDate | (Optional) Last coupon date of a bond prior to the maturity date. In the absence of a specified FirstCouponDate, a specified LastCouponDate determines the coupon structure of the bond. The coupon structure of a bond is truncated at the LastCouponDate regardless of where it falls and is followed only by the bond's maturity cash flow date. |
Ignored. | |
(Optional) Face or par value. Default = 100. |
Data arguments are number of instruments (NINST)-by-1 vectors, scalar, or empty. Fill unspecified entries in vectors with NaN. Only one data argument is required to create the instrument. The others may be omitted or passed as empty matrices [].
InstSet = instbond(InstSet, CouponRate, Settle, Maturity, Period, Basis, EndMonthRule, IssueDate, FirstCouponDate, LastCouponDate, StartDate, Face) creates a new instrument set containing bond instruments or adds bond instruments to a existing instrument set.
[FieldList, ClassList, TypeString] = instbond displays the classes.
FieldList is a number of fields (NFIELDS)-by-1 cell array of strings listing the name of each data field for this instrument type.
ClassList is an NFIELDS-by-1 cell array of strings listing the data class of each field. The class determines how arguments are parsed. Valid strings are 'dble', 'date', and 'char'.
TypeString is a string specifying the type of instrument added. For a bond instrument, TypeString = 'Bond'.
hjmprice, instaddfield, instdisp, instget, intenvprice
![]() | instbarrier | instcap | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |