MathGroup Archive 2008

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

Search the Archive

Fit data with range

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88364] Fit data with range
  • From: Ivan <darknails at gmail.com>
  • Date: Sat, 3 May 2008 06:15:14 -0400 (EDT)

Hi

I want to fit a polynomial function to a set of data,
only between say xmin to xmax. How can I do that?
I know only how to fit the whole range.

For example:

data = ReadList["file.dat",{Number,Number}];

fit = Fit[data,{1,x,x^2},x]

Plot[fit,{x,0,10}]



thanks!


  • Prev by Date: Re: Inverse of symbolic matrix
  • Next by Date: Identical elements
  • Previous by thread: Re: partial differential equation of diffusion
  • Next by thread: RE: Fit data with range