MATLAB Code for Lerou Lab