fix matlab_template2.m