%% Compute the Discount Rate on a Money-Market Basis
% Given a Treasury bill with these characteristics, compute the discount rate.

Yield = 0.0497;
Settle = '01-Oct-02';
Maturity = '31-Mar-03';

Discount = tbillyield2disc(Yield,Settle,Maturity)

% Copyright 2012 The MathWorks, Inc.