Create maxWithM.m