[c,r2,eqn] = lsqcurvefit_approx(x,y) returns the model coefficient vector c = [m,b] for the linear fit to a data set defined by the vectors x (independent variable) and y (dependent variable).