Added MATLAB reporting code.