Create write_func_gama.m