To find the exponent for a data

2 Ansichten (letzte 30 Tage)
Gokul Raju
Gokul Raju am 23 Okt. 2013
Kommentiert: Gokul Raju am 23 Okt. 2013
I have a non-linear data of the form: y=x^a. The data looks more like an exponential curve and I wanted to find the best value for 'a'.
Can you please suggest how to fit the data and obtain 'a' using MATLAB ?

Akzeptierte Antwort

Laurent
Laurent am 23 Okt. 2013
Bearbeitet: Laurent am 23 Okt. 2013
If you want to do this only once, you could use the Curve Fitting Tool using the command 'cftool'. You only need a variable with your x-values and a variable with y-values. Select them in the Tool and select the appropriate function.
If you want to do this in a script or function, or on the command line, you can use 'lsqnonlin'
  1 Kommentar
Gokul Raju
Gokul Raju am 23 Okt. 2013
Bearbeitet: Gokul Raju am 23 Okt. 2013
Thanks Laurent. Very useful, could try various options that are there to fit the data.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation 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!

Translated by