Wrote MATLAB code for analyzing Adrian's result.