%% Find the Yield of a Discounted Security
% 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)

% Copyright 2015 The MathWorks, Inc.