%% Find the Yield of a Security Paying Interest at Maturity
% This example shows how to find the yield of a security paying interest at maturity for the following.

Settle = '02/07/2000';
Maturity = '04/13/2000';
Issue = '10/11/1999';
Face = 100;
Price = 99.98;
CouponRate = 0.0608;
Basis = 1;

Yield = yldmat(Settle, Maturity, Issue, Face, Price,... 
CouponRate, Basis)

% Copyright 2015 The MathWorks, Inc.