Curve fitting a power function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Ameer Hamza
am 1 Apr. 2020
Bearbeitet: Ameer Hamza
am 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);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!