Main Content


Create money-market tree from Heath-Jarrow-Morton interest-rate tree



MMktTree = mmktbyhjm(HJMTree) creates a money-market tree from an interest-rate tree structure created by hjmtree.


collapse all

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)
MMktTree = struct with fields:
      FinObj: 'HJMMmktTree'
        tObs: [0 1 2 3 4]
    MMktTree: {[1]  [1x1x2 double]  [1x2x2 double]  [1x4x2 double]}


Figure Tree Viewer contains 2 axes objects and other objects of type uicontrol. Axes object 1 contains 29 objects of type line. Axes object 2 is empty.

Input Arguments

collapse all

HJM interest-rate tree structure, specified by hjmtree.

Data Types: struct

Output Arguments

collapse all

Money-market tree, returned as a tree structure.

Version History

Introduced before R2006a