mmktbyhjm

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

Description

example

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

Examples

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]}

treeviewer(MMktTree)

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.

Introduced before R2006a