https://au.mathworks.com/help/fininst/optstockbyitt.html
optstockbyitt - Price options on stocks using implied trinomial tree (ITT) - MATLAB
This MATLAB function returns the price of a European, Bermuda, or American stock option from an implied trinomial tree (ITT).
price optionsstocks