updated compileMatlab