fixed fixPtVec.m again to a simpler solution.