Fit a curve of equation of form y = ax^b to data
39 ビュー (過去 30 日間)
古いコメントを表示
Ershad Ahamed Chemmalasseri
2012 年 6 月 19 日
回答済み: hitesh Mehta
2018 年 2 月 17 日
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.
1 件のコメント
採用された回答
Honglei Chen
2012 年 6 月 19 日
If you have Curve Fitting Toolbox, you can use that to do an exponential fitting directly
If 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 polyfit
0 件のコメント
その他の回答 (2 件)
Sean de Wolski
2012 年 6 月 19 日
Any of these are designed for this.
- lsqcurvefit Optimization Toolbox
- nlinfit Statistics Toolbox
- NonlinearModel Statistics Toolbox >= R2012a.
0 件のコメント
hitesh Mehta
2018 年 2 月 17 日
Hi,
How do I fit a curve of equation of form y = ax^b+c to my data. I have x and y and c values.
I have to find a and b(it can be a fraction) and plot the curve.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interpolation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!