Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

beytbill

Bond equivalent yield for Treasury bill

Syntax

Yield = beytbill(Settle, Maturity, Discount)

Arguments

Settle

Enter as serial date numbers, date character vectors, or datetime array. Settle must be earlier than Maturity.

Maturity

Enter as serial date numbers, date character vectors, or datetime array.

Discount

Discount rate of the Treasury bill. Enter as decimal fraction.

Description

Yield = beytbill(Settle, Maturity, Discount) returns the bond equivalent yield for a Treasury bill.

Examples

collapse all

This example shows how to find the bond equivalent yield for a Treasury bill that has a settlement date of February 11, 2000, a maturity date of August 7, 2000, and a discount rate is 5.77.

Yield = beytbill('2/11/2000', '8/7/2000', 0.0577)
Yield =

    0.0602

This example shows how to use datetime inputs to find the bond equivalent yield for a Treasury bill that has a settlement date of February 11, 2000, a maturity date of August 7, 2000, and the discount rate is 5.77.

Yield = beytbill(datetime('11-Feb-2000','Locale','en_US'), datetime('7-Aug-2000','Locale','en_US'),...
0.0577)
Yield =

    0.0602

Related Examples

Introduced before R2006a

Was this topic helpful?