MATLAB prototype finished