Curve fitting a power function
3 ビュー (過去 30 日間)
古いコメントを表示
I am wondering how to fit my data to a power function of the form Q=c(h+a)^b
where Q is the flow rate data and h is the stage height. How can I identify a,b, and c?
Thanks,
0 件のコメント
回答 (1 件)
Ameer Hamza
2020 年 4 月 1 日
編集済み: Ameer Hamza
2020 年 4 月 1 日
If h and Q are vectors then try
ft = fittype('c*(h+a)^b', 'independent', 'h');
fit_model = fit(h(:), Q(:), ft);
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!