It may be worth understanding how these curve fits work.
In MATLAB, it is fairly easy to do polynomial curve fits using built-in polynomial functions and get the desired coefficients.
If you would like to understand it, please read on, otherwise you may like to skip this section. The simplest relationship between two variables, say x and y, is a linear relationship: y = mx+c. For a given set of data points (xi, yi), the problem is to find m and c such that yi = mxi +c best fits the data.
For data points which are not linearly related, you may seek a polynomial relationship
It may be worth understanding how these curve fits work. In MATLAB, it is fairly easy to do polynomial curve fits using built-in polynomial functions and get the desired coefficients. If you would like to understand it, please read on, otherwise you may like to skip this section. The simplest relationship between two variables, say x and y, is a linear relationship: y = mx+c. For a given set of data points (xi, yi), the problem is to find m and c such that yi = mxi +c best fits the data. For data points which are not linearly related, you may seek a polynomial relationship
การแปล กรุณารอสักครู่..