%% Calculate the Price of a Security Whose Yield is Quoted as a Bank Discount Rate
% This example shows how to return the price of a security whose yield is quoted as a bank discount rate (for example, U. S. Treasury bills).

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

Price = prdisc(Settle, Maturity, Face, Discount, Basis)

% Copyright 2015 The MathWorks, Inc.