fix matlab_template.m