Linear Regression Matlab Polyfit, We find the coefficients with ' polyfit ' and evaluate any xi with ' polyval '.