Curve fitting a power function

1 次查看(过去 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,

回答(1 个)

Ameer Hamza
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);

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by