Introduction - If you have any usage issues, please Google them yourself
Matlab provides a fast way to achieve polynomial fitting function polyfit () function,
The format: p = polyfit (x, y, n) where x, y as the sample vector, n is the number of items of polynomial fitting. The following proposed f (x) = sinx+ x, the interval-3,3】 【intervals on the order of 0.5 to fit.