MATLAB script and makefiles