https://www.mathworks.com/help/fininst/roll-geske-whaley-option-pricing-model-analysis.html?s_tid=CRUX_topnav
Roll-Geske-Whaley Model - MATLAB & Simulink
Calculate implied volatility, price, and sensitivity using option pricing model for American call options
roll geske whaley modelmatlabsimulink