how to fit y=ax^b without curve fitting
3 ビュー (過去 30 日間)
古いコメントを表示
how to fit a set of data using 𝑦 = 𝑎𝑥^b (logarithmic transformation) ?
2 件のコメント
David Goodmanson
2021 年 3 月 5 日
編集済み: David Goodmanson
2021 年 3 月 5 日
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.
回答 (1 件)
Image Analyst
2021 年 3 月 5 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!