fix matlab_template.m and delete matlab_template2.m