I am trying to fit a parabola using polyfit/polyval combination in Matlab. However, in some cases, I am not able to align the peak of fitted parabola as it should b
polyfit/polyval