フィルターのクリア

To find the exponent for a data

3 ビュー (過去 30 日間)
Gokul Raju
Gokul Raju 2013 年 10 月 23 日
コメント済み: Gokul Raju 2013 年 10 月 23 日
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 ?

採用された回答

Laurent
Laurent 2013 年 10 月 23 日
編集済み: Laurent 2013 年 10 月 23 日
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 件のコメント
Gokul Raju
Gokul Raju 2013 年 10 月 23 日
編集済み: Gokul Raju 2013 年 10 月 23 日
Thanks Laurent. Very useful, could try various options that are there to fit the data.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by