필터 지우기
필터 지우기

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 CenterFile Exchange에서 Get 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