OK, everything is wrong. 😞 Here is the right way to do it.
In addition to the above mentioned problem, your function misses one parameter, the ampltude. (you only use position and width). Attached is a fixed version. You need a function with three parameters and an array with three elements for the initial guess of the parametres.
Now the fit works just fine. The best fit is [Amplidude=~100, position=~1000, width=~3.2] 🙂
Let me know i you have any questions.
Message Edited by altenbach on 01-29-2007 01:29 PM