Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11133

Fitting part of a List

From Butterfly87 <eppi2.0@freenet.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Fitting part of a List
Date 2012-07-31 02:16 +0000
Message-ID <jv7f68$1f3$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Fitting part of a List Butterfly87 <eppi2.0@freenet.de> - 2012-07-31 02:16 +0000

csiph-web