Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'FindFit' topicStudent Support Forum > General > Archives > "FindFit"

Help | Reply To Topic
Author Comment/Response
Arunima Coomar
07/29/10 7:15pm

how does one use the findfit function when the list of parameters is continuously changing?

I have the following segment of code:

(*datagauss=some list of data*)

f[amp_,x0_,g]:= amp/(1+((x-x0)/g)^2)

list={{amp1,x1,g1},{amp2,x2,g2},{amp3,x3,g3}}

model=Apply[Plus,Apply[f,list,{1}]]

fit=FindFit[datagauss,model,{amp1,x1,g1,amp2,x2,g2,amp3,x3,g3},x]

My goal is to replace the set of parameters inside the findfit function.

URL: ,
Help | Reply To Topic