| Financial Toolbox | Search  Help Desk |
| ylddisc | Examples See Also |
Syntax
y = ylddisc(sd, md, rv, price, basis) y = ylddisc(sd, md, rv, price)
Arguments
sdsd must be earlier than or equal to md.mdrvpricebasis0 = actual/actual (default), 1 = 30/360,2 = actual/360, 3 = actual/365.Description
y = ylddisc(sd, md, rv, price, basis)
finds the yield of a discounted security.
Example
Using the datasd = '10/14/1988'; md = '03/17/1989'; rv = 100; price = 96.28; basis = 2; y = ylddisc(sd, md, rv, price, basis)returns
y =
0.0903 (or 9.03%)
See Also
acrudisc, prbond, prdisc, yldbond, yldmat, yldoddf, yldoddfl,
yldoddl, yldtbill
Reference
Mayle, Standard Securities Calculation Methods, Volumes I-II, 3rd edition. Formula 1.