MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Fitting part of a List

  • To: mathgroup at
  • Subject: [mg127509] Fitting part of a List
  • From: Butterfly87 <eppi2.0 at>
  • Date: Mon, 30 Jul 2012 22:14:37 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

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

  • Prev by Date: Re: Mathematica as a New Approach to Teaching Maths
  • Next by Date: An optimization problem
  • Previous by thread: Re: Manipulate with Matrices
  • Next by thread: An optimization problem