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.

ylddisc

Yield of discounted security

Syntax

Yield = ylddisc(Settle,Maturity,Face,Price)
Yield = ylddisc(___,Basis)

Description

example

Yield = ylddisc(Settle,Maturity,Face,Price) returns the yield of a discounted security.

Yield = ylddisc(___,Basis) adds optional an argument for Basis.

Examples

collapse all

This example shows how to find the yield of the following discounted security.

Settle = '10/14/2000';
Maturity = '03/17/2001';
Face = 100;
Price = 96.28;
Basis = 2;

Yield = ylddisc(Settle, Maturity, Face, Price, Basis)
Yield = 0.0903

This example shows how to use datetime inputs to find the yield of the following discounted security.

Settle = '10/14/2000';
Maturity = '03/17/2001';
Face = 100;
Price = 96.28;
Basis = 2;

Settle = datetime(Settle,'Locale','en_US');
Maturity = datetime(Maturity,'Locale','en_US');

Yield = ylddisc(Settle, Maturity, Face, Price, Basis)
Yield = 0.0903

Input Arguments

collapse all

Settlement date of the security, specified as serial date numbers, date character vectors, or datetime arrays. The Settle date must be before the Maturity date.

Data Types: double | char | datetime

Maturity date of the security, specified as serial date numbers, date character vectors, or datetime arrays.

Data Types: double | char | datetime

Redemption value (par value) of the security, specified as a numeric value.

Data Types: double

Discount price of the security, specified as a numeric value.

Data Types: double

Day-count basis for the security, specified using the following values:

  • 0 = actual/actual

  • 1 = 30/360 (SIA)

  • 2 = actual/360

  • 3 = actual/365

  • 4 = 30/360 (PSA)

  • 5 = 30/360 (ISDA)

  • 6 = 30/360 (European)

  • 7 = actual/365 (Japanese)

  • 8 = actual/actual (ICMA)

  • 9 = actual/360 (ICMA)

  • 10 = actual/365 (ICMA)

  • 11 = 30/360E (ICMA)

  • 12 = actual/365 (ISDA)

  • 13 = BUS/252

For more information, see basis.

Data Types: double

Output Arguments

collapse all

Yield of discounted security, returned as a numeric value.

References

[1] Mayle, J. Standard Securities Calculation Methods. Volumes I-II, 3rd edition. Formula 1.

Introduced before R2006a

Was this topic helpful?