LTPDA Toolbox™ |
contents |

polyfit.m overloads the polyfit() function of MATLAB for Analysis Objects.

The script calls the following MATLAB functions:

- polyfit.m
- polyval.m

% CALL: b = polyfit(a, pl) % % Parameters: 'N' - degree of polynomial to fit % 'coeffs' - (optional) coefficients % formed e.g. by [p,s] = polyfit(x,y,N);

After this in the script polyfit.m the function polyval.m is called, which evaluates the polynomial of order 'N' according to these coefficients.

Using the output of polyval.m the fitted data series is created and outputted as analysis object.

Fitting Algorithms | Markov Chain Monte Carlo |

©LTP Team