Financial Toolbox    
bdttrans

Translate a tree returned by bdtbond

Syntax

Arguments
Tree
Tree structure returned by bdtbond.

Description
bdttrans unpacks and converts a short discount tree structure to a short rate tree, or a price tree structure to a clean price tree. The output is a matrix of tree node values and a vector of node times.

TreeMat is an NSTATES-by-NTIMES converted matrix of short rate or clean price values at points on the tree. Time layers are columns containing the different states. Unused entries of the matrix are screened with NaN.

TreeTimes is a 1-by-NTIMES vector of times corresponding to layers of TreeMat.

If bdttrans is called without output arguments, it plots the translated tree against the time axis in coupon intervals.

Examples
Specify a bond.

Specify an embedded American call option. Make the bond callable by the issuer between 15-Jan-1997 and maturity.

Build constant zero curve structure.

Build constant volatility curve structure.

Choose two tree nodes per whole coupon period.

Run the bdtbond function.

Convert the discount tree to a short rate tree.

Convert the price tree to a clean price tree.

See Also
bdtbond


 bdtbond beytbill