%% Use cfamounts With a Face Schedule
% This example shows how to use cfamounts with a Face schedule. For CouponRate and  Face that change over the life of the bond, schedules for CouponRate and Face can be specified with an NINST-by-1 cell array, where each element is a NumDates-by-2 matrix where the first column is dates and the second column is associated rates.

FaceSchedule = {[datenum('15-Mar-2012') 100;datenum('15- Mar -2013') 90;...
datenum('15- Mar -2015') 80]}
cfamounts(.05,'01-Mar-2011','15-Mar-2015', 'Face', FaceSchedule)

% Copyright 2015 The MathWorks, Inc.