curve fitting, and finding the parameters

1 Ansicht (letzte 30 Tage)
Rasmus
Rasmus am 5 Mär. 2014
Kommentiert: Matt J am 5 Mär. 2014
I have this histogram which i need to make a fit by using fminsearch:
I am given this function:
f(x)=Beta*exp(-(x-xc)^2/lambda)
which method would be the best way to use?
  3 Kommentare
Rasmus
Rasmus am 5 Mär. 2014
but how do i find the parameters beta, xc and lambda by using it?
Matt J
Matt J am 5 Mär. 2014
by designing a cost function of the form
g([beta,xc,lambda]) = norm(f(xi)-measurements)
and minimizing g() with fminsearch.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by