Effacer les filtres
Effacer les filtres

Curve fitting a power function

1 vue (au cours des 30 derniers jours)
Asanka Subasinghe
Asanka Subasinghe le 1 Avr 2020
Modifié(e) : Ameer Hamza le 1 Avr 2020
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,

Réponses (1)

Ameer Hamza
Ameer Hamza le 1 Avr 2020
Modifié(e) : Ameer Hamza le 1 Avr 2020
If h and Q are vectors then try
ft = fittype('c*(h+a)^b', 'independent', 'h');
fit_model = fit(h(:), Q(:), ft);

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by