Yield to maturity for fixedincome security
Yield = bndyield(Price, CouponRate, Settle, Maturity)
Yield = bndyield(Price, CouponRate, Settle, Maturity,
Period, Basis, EndMonthRule, IssueDate, FirstCouponDate,
LastCouponDate, StartDate, Face)
Yield = bndyield(Price, CouponRate, Settle, Maturity,'ParameterName'
, ParameterValue
,
...)
Yield = bndyield(Price, CouponRate, Settle, Maturity)
,
given NUMBONDS
bonds with SIA date parameters and
clean prices (excludes accrued interest), returns the bond equivalent
yields to maturity.
Yield = bndyield(Price, CouponRate, Settle, Maturity,
bonds with SIA
date parameters and clean prices (excludes accrued interest) and optional
inputs, returns the bond equivalent yields to maturity.
Period, Basis, EndMonthRule, IssueDate, FirstCouponDate,
LastCouponDate, StartDate, Face)
Yield = bndyield(Price, CouponRate, Settle, Maturity,
accepts optional inputs as one or more commaseparated
parameter/value pairs. 'ParameterName'
, ParameterValue
,
...)'ParameterName'
is
the name of the parameter inside single quotes. ParameterValue
is
the value corresponding to 'ParameterName'
.
Specify parameter/value pairs in any order. Names are caseinsensitive.
Note:
All nonscalar or empty matrix input arguments must be either 

Clean price of the bond (current price without accrued interest). 

Decimal number indicating the annual percentage rate used to determine the coupons payable on a bond. 

Settlement date. A vector of serial date numbers, date character
vectors, or datetime arrays. 

Maturity date. A vector of serial date numbers, date character vectors, or datetime arrays. 
Enter the following inputs using an ordered syntax or as parameter/value pairs. You cannot mix ordered syntax with parameter/value pairs.

Coupons per year of the bond. A vector of integers. Values are Default: 

Daycount basis of the instrument. A vector of integers.
For more information, see basis. Default: 

Endofmonth rule. A vector. This rule applies only when Default: 

Issue date for a bond, specified as a serial date number, date character vector, or datetime array. Default: If you do not specify an 

Date when a bond makes its first coupon payment, specified as
a serial date number, date character vector, or datetime array. Default: If you do not specify a 

Last coupon date of a bond before the maturity date, specified
as a serial date number, date character vector, or datetime array. Default: If you do not specify a 

Date, specified as a serial date number, date character vector,
or datetime array, when a bond actually starts (the date from which
a bond cash flow is considered). To make an instrument forwardstarting,
specify this date as a future date. If you do not specify Default: If you do not specify 

Face or par value. Default: 
Enter the following inputs only as parameter/value pairs.

Compounding frequency for yield calculation. Possible values
include: Default: SIA bases (0–7) and BUS/252 use a semiannual compounding convention and ICMA bases (8–12) use an annual compounding convention. 

Basis used to compute the discount factors for computing the
yield. The possible values for
If a SIA daycount basis is defined in the If an ICMA daycount basis or BUS/252 is defined in the Default: SIA bases use the 

Compounding convention for computing the yield of a bond in
the last coupon period. This computation is based on only the last
coupon and the face value to be repaid. Acceptable values are Default: 


Krgin, Dragomir. Handbook of Global Fixed Income Calculations. John Wiley & Sons, 2002.
Mayle, Jan. "Standard Securities Calculations Methods: Fixed Income Securities Formulas for Analytic Measures." SIA, Vol 2, Jan 1994.
Stigum, Marcia, and Franklin Robinson. Money Market and Bond Calculations. McGrawHill, 1996.