フィルターのクリア

fitting data with specific function

2 ビュー (過去 30 日間)
Pinco
Pinco 2012 年 5 月 9 日
Hi everyone! I have some experimental data and I have to fit it. Hi want to use a specific function, i.e y(x) = (C*x^a)/Gamma(1-a)), where C and a are constants, and Gamma is the Euler Gamma function.
If I use fit function, I cannot use my favorite form. How can I do this? Thanks a lot for your answer :)
Pinco

回答 (1 件)

Sargondjani
Sargondjani 2012 年 5 月 9 日
i think 'lsqnonlin' is best suited...
if you dont want to minimize least squares, you can write your own objective function and use 'fminunc' (or fminsearch if you dont have the optimization toolbox)
  1 件のコメント
Sean de Wolski
Sean de Wolski 2012 年 5 月 9 日
or lsqcurvefit so you can pass the x and y in directly.

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

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by