Curve fitting a power function
Mostra commenti meno recenti
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,
Risposte (1)
Ameer Hamza
il 1 Apr 2020
Modificato: Ameer Hamza
il 1 Apr 2020
If h and Q are vectors then try
ft = fittype('c*(h+a)^b', 'independent', 'h');
fit_model = fit(h(:), Q(:), ft);
Categorie
Scopri di più su Interpolation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!