| Financial Toolbox | Search  Help Desk |
| tbl2bond | Examples See Also |
Treasury bond parameters given Treasury bill parameters.
Syntax
tbond = tbl2bond(tbill)
Arguments
tbill[md daysm bid ask askyld] wheremddatenum to convert date strings to serial date numbers.daysmbidaskaskyldDescription
tbond = tbl2bond(tbill)
restates U.S. Treasury bill market parameters in U.S. Treasury bond form as zero-coupon bonds. This function makes Treasury bills directly comparable to Treasury bonds and notes.
tbond[cpn md bidp askp askytm] wherecpn0.mdtbill date md. Use datestr to convert serial date numbers to date strings.bidpaskpaskytmExample
Given published Treasury bill market parameters for December 22, 1997:tbill = [datenum('jan 02 1998') 10 0.0526 0.0522 0.0530
datenum('feb 05 1998') 44 0.0537 0.0533 0.0544
datenum('mar 05 1998') 72 0.0529 0.0527 0.0540];
Execute the function.
tbond = tbl2bond(tbill)
tbond =
0 729757 99.854 99.855 0.054391
0 729791 99.344 99.349 0.055714
0 729819 98.942 98.946 0.055184
(Example output has been formatted for readability.)
See Also
tr2bonds and other functions for Term Structure of Interest Rates