%% Price Cap and Bond Instruments in the Instrument Set
% Load the BK tree and instruments from the data file deriv.mat. Price the cap and bond instruments contained in the instrument set.

load deriv.mat; 
BKSubSet = instselect(BKInstSet,'Type', {'Bond', 'Cap'}); 

instdisp(BKSubSet)
[Price, PriceTree] = bkprice(BKTree, BKSubSet)

%
% You can use treeviewer to see the prices of these three instruments along the price tree.
% Copyright 2018 The MathWorks, Inc.