Create CreateMfunction.m