MRG MATLAB Toolbox