Fitting part of a List

*To*: mathgroup at smc.vnet.net*Subject*: [mg127509] Fitting part of a List*From*: Butterfly87 <eppi2.0 at freenet.de>*Date*: Mon, 30 Jul 2012 22:14:37 -0400 (EDT)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com*Delivered-to*: l-mathgroup@wolfram.com*Delivered-to*: mathgroup-newout@smc.vnet.net*Delivered-to*: mathgroup-newsend@smc.vnet.net

Dear All, I have a set of data(63 pairs) of the form {x-Value, Intensity} imported to Mathematica. I also managed to extract the data pairs 5 to 25 using the Take-function. I want to fit these data using the Fitfunction TS[q] and FindFit. I told Mathematica to follow this Input: FindFit[d2[q], TS[q], {{a, 1000}, {b, 1500}, {c, 0.008}}, q] d2[q] is the list of data extracted from the original data[23 value pairs] TS[q] is the fitfunction a,b,c are constants close to the mentioned values q is the variable Using this I got the error: FindFit::fitd: First argument in FindFit is not a list or a rectangular array. However, if I use the orginal data set, the fit works!!! Why doesn't Mathematica fit the part of the list? Thank you in advance!!! Cheers, Butterfly