how to fit y=ax^b without curve fitting
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to fit a set of data using 𝑦 = 𝑎𝑥^b (logarithmic transformation) ?
2 commentaires
David Goodmanson
le 5 Mar 2021
Modifié(e) : David Goodmanson
le 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.
Réponses (1)
Image Analyst
le 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 commentaires
Voir également
Catégories
En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!