https://www.mathworks.com/help/fininst/optembndbybdt.html
optembndbybdt - Price bonds with embedded options by Black-Derman-Toy interest-rate tree - MATLAB
This MATLAB function calculates price for bonds with embedded options from a Black-Derman-Toy interest-rate tree and returns exercise probabilities in...