Financial Derivatives Toolbox    
treeviewer

Display Heath-Jarrow-Morton (HJM) tree

Syntax

Arguments

HJMTree
Heath-Jarrow-Morton tree containing forward rates, prices, or cash flows. See hjmtree for information on creating HJMTree.
InstSet
(Optional) Variable containing a collection of instruments whose prices or cash-flows are contained in HJMTree. The collection can be created with the function instadd or as a cell array containing the names of the instruments. To display the names of the instruments, the field Name should exist in InstSet. If InstSet is not passed, treeviewer uses default instruments names (numbers) when displaying prices or cash flows.

Description

treeviewer(HJMTree) displays an HJM tree using default instrument names.

treeviewer(HJMTree, InstSet) displays an HJM forward rate, price, or cash flow tree including instrument names.

Examples

Display an HJM forward rate tree.

Display HJM price tree including instrument set.

Display HJM price tree with renamed instruments.

Display HJM price tree using default instrument names (numbers).

See Also

hjmtree, instadd


 swapbyzero Derivtool