Introduction - If you have any usage issues, please Google them yourself
The polyfit function is a function used in curve fitting in matlab. Its mathematical basis is the principle of least-squares curve fitting. Curve fitting: Known data sets at discrete points, known as function values on the point set, construct an analytical function (the graph is a curve) so that the original discrete point is as close as possible to a given value.