Minor bug in learning_curve.m