MATLAB: Curve fitting a power law function a(x^b) + C

curve fittingMATLABpower law

Greetings. I have been trying to fit a power law function through a data set through: p = polyfit(log(x),log(y),1) This gives me the values for coefficient a and b, but I cannot figure out how to get c. Any help or advice would be greatly appreciated. Thanks.

Best Answer

Use lsqcurvefit.
Best wishes
Torsten.