%% Compute the Price of a Treasury Bill Using the Bond-Equivalent Yield
% Given a Treasury bill with the following characteristics, compute the price of the Treasury bill using the bond-equivalent yield (Type = 2) as input.

Rate = 0.045;
Settle = '01-Oct-02';
Maturity = '31-Mar-03';

Type = 2;

Price = tbillprice(Rate, Settle, Maturity, Type)

% Copyright 2012 The MathWorks, Inc.