https://it.mathworks.com/help/fininst/optstockbybjs.html
optstockbybjs - Price American options using Bjerksund-Stensland 2002 option pricing model - MATLAB
This MATLAB function computes American option prices with continuous dividend yield using the Bjerksund-Stensland 2002 option pricing model.