Documentation

This is machine translation

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

yldtbill

Yield of Treasury bill

Syntax

Yield = yldtbill(Settle, Maturity, Face, Price)

Arguments

Settle

Settlement date, specified as a serial date number, date character vector, or datetime array. Settle must be earlier than Maturity.

Maturity

Maturity date, specified as a serial date number, date character vector, or datetime array.

Face

Redemption (par, face) value.

Price

Price of the Treasury bill.

Description

Yield = yldtbill(Settle, Maturity, Face, Price) returns the yield for a Treasury bill.

Examples

collapse all

This example shows how to return the yield for a Treasury bill, given the settlement date of a Treasury bill is February 10, 2000, the maturity date is August 6, 2000, the par value is $1000, and the price is $981.36.

Yield = yldtbill('2/10/2000', '8/6/2000', 1000, 981.36)
Yield =

    0.0384

This example shows how to use datetime inputs to return the yield for a Treasury bill, given the settlement date of a Treasury bill is February 10, 2000, the maturity date is August 6, 2000, the par value is $1000, and the price is $981.36.

Yield = yldtbill(datetime('10-Feb-2000','Locale','en_US'), datetime('6-Aug-2000','Locale','en_US'), 1000, 981.36)
Yield =

    0.0384

Related Examples

References

Bodie, Kane, and Marcus. Investments. pp. 41–43.

Introduced before R2006a

Was this topic helpful?