https://www.mathworks.com/help/fininst/lookbacksensbyls.html
lookbacksensbyls - Calculate price and sensitivities for European or American lookback options...
This MATLAB function returns prices or sensitivities of lookback options using the Longstaff-Schwartz model for Monte Carlo simulations.
calculate pricesensitivities