Update calculateBetaAndPhaseBoundsFinalTwoPoints.m