Electrònica 5
Electrònica 5
The polyfit function is used to compute the best fit of a set of data points to a
polynomial with a specified degree. The general form of the function is
where
x and y are the data points.
coeff _ xy ( x ) = c1 x n + c2 x n −1 + ... + cm
Example 9.1