https://kr.mathworks.com/help/finance/emaxdrawdown.html
emaxdrawdown - Compute expected maximum drawdown for Brownian motion - MATLAB
This MATLAB function computes the expected maximum drawdown for a Brownian motion for each time period in T using the following equation:
maximum drawdownbrownian motioncomputeexpectedmatlab