MATLAB: Fit a curve of equation of form y = ax^b to data curve fittingMATLAB Hi, How do I fit a curve of equation of form y = ax^b to my data. I have x and y values. I have to find a and b (it can be a fraction) and plot the curve. Best Answer If you have Curve Fitting Toolbox, you can use that to do an exponential fitting directlyhttp://www.mathworks.com/help/toolbox/curvefit/bszh0sy-5.htmlIf not, you can take logarithm of both sides and translate that into a linear fitting problem, i.e.log(y) = log(a)+b*log(x)and then use polyfithttp://www.mathworks.com/help/techdoc/ref/polyfit.html Related SolutionsMATLAB: Hi.. Do anybody knows, how to fit a custome equation for multiple curves at the same time. lsqcurvefit can be used to fit N-dimensional curves (for you N=760).https://www.mathworks.com/matlabcentral/answers/431697-make-curve-fitting-faster#comment_687701 Related Question
Best Answer