modify matlab script, add compile.m