how to fit y=ax^b without curve fitting
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how to fit a set of data using 𝑦 = 𝑎𝑥^b (logarithmic transformation) ?
2 Commenti
David Goodmanson
il 5 Mar 2021
Modificato: David Goodmanson
il 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.
Risposte (1)
Image Analyst
il 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 Commenti
Vedere anche
Categorie
Scopri di più su Linear and Nonlinear Regression in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!