learningCurve.m modified and loopless solution remained