%% Create Money-Market Tree from Heath-Jarrow-Morton Interest-Rate Tree
% Use a hjmtree from the deriv.mat and create a money-market tree from the HJM interest-rate tree.

load deriv.mat;
MMktTree = mmktbyhjm(HJMTree)
treeviewer(MMktTree)

% Copyright 2020 The MathWorks, Inc.