%% Price a Treasury Bond with Different Yield Values
% This example shows how to price a Treasury bond at two different yield values that include parameter/value pairs for CompoundingFrequency, DiscountBasis, and LastCouponPeriodInterest.

bndprice(.04,0.08,'5/25/2004','4/21/2005','Period',1,'Basis',8, ...
'LastCouponInterest','simple')

% Copyright 2015 The MathWorks, Inc.