how to fit y=ax^b without curve fitting
8 views (last 30 days)
Show older comments
how to fit a set of data using 𝑦 = 𝑎𝑥^b (logarithmic transformation) ?
2 Comments
David Goodmanson
on 5 Mar 2021
Edited: David Goodmanson
on 5 Mar 2021
Hi Moza,
you can certainly take the log of both sides and try fitting the straight line
log(y) = c + b*log(x) % c = log(a)
if that's what you mean.
Answers (1)
Image Analyst
on 5 Mar 2021
You can use fitnlm() - Fit Non-linear model. See attached for a bunch of demos where I use it on a wide variety of equations. Adapt as needed.
0 Comments
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!