fitting data with specific function

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

Respuestas (1)

Sargondjani
Sargondjani el 9 de Mayo de 2012

0 votos

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 comentario

Sean de Wolski
Sean de Wolski el 9 de Mayo de 2012
or lsqcurvefit so you can pass the x and y in directly.

Iniciar sesión para comentar.

Categorías

Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by