Create cautoCost2.m