polyfit.m overloads the polyfit() function of MATLAB for Analysis Objects.
The script calls the following MATLAB functions:
% 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);