MATLAB scripts for result analysis