Fit a curve of equation of form y = ax^b to data
39 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ershad Ahamed Chemmalasseri
am 19 Jun. 2012
Beantwortet: hitesh Mehta
am 17 Feb. 2018
Hi,
How do I fit a curve of equation of form y = ax^b to my data. I have x and y values. I have to find a and b (it can be a fraction) and plot the curve.
1 Kommentar
Akzeptierte Antwort
Honglei Chen
am 19 Jun. 2012
If you have Curve Fitting Toolbox, you can use that to do an exponential fitting directly
If not, you can take logarithm of both sides and translate that into a linear fitting problem, i.e.
log(y) = log(a)+b*log(x)
and then use polyfit
0 Kommentare
Weitere Antworten (2)
Sean de Wolski
am 19 Jun. 2012
Any of these are designed for this.
- lsqcurvefit Optimization Toolbox
- nlinfit Statistics Toolbox
- NonlinearModel Statistics Toolbox >= R2012a.
0 Kommentare
hitesh Mehta
am 17 Feb. 2018
Hi,
How do I fit a curve of equation of form y = ax^b+c to my data. I have x and y and c values.
I have to find a and b(it can be a fraction) and plot the curve.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!