MathGroup Archive 1999

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

Search the Archive

Re: Curve Fitting w/ Parametric Equations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16941] Re: [mg16905] Curve Fitting w/ Parametric Equations
  • From: "Mark E. Harder" <harderm at ucs.orst.edu>
  • Date: Thu, 8 Apr 1999 02:32:42 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Fu-Lin --
    I did the following, fitting parametric eqns. for x & y to data with
noise in y.  Each variable (x, & y) is fitted separately. Is this what you
wanted?


data= Table[{ 2t, 5 t^2+Random[Real,{- t,+t},3] },{t,0,5,.1} ];
ListPlot[data];

tVec=Table[t,{t,0.,5.,.1} ];
fitData=Table[{tVec[[i]],data[[i,j]]},{j,1,2},{i,1,51} ];
x=Fit[fitData[[1]],{t},t ]
y=Fit[fitData[[2]],{t^2},t ]

Show[ListPlot[data ], ParametricPlot[{x, y}, {t, 0., 5.}] ];

-mark e. harder

-----Original Message-----
From: Fu-Lin Tsung <flt at apk.net>
To: mathgroup at smc.vnet.net
Subject: [mg16941] [mg16905] Curve Fitting w/ Parametric Equations


>Hi,
>
>  I'd like to do curve fits using parametric equations. Is this possible?
>Looking at an older manual (Mathematica-Wolfram, 2nd edition) I don't
>think it is. I'm new to mathematica and am wondering if there are any
>tricks/tips I can use to accomplish this task?
>
>Thanks for any and all tips and suggestions.
>
>flt
>



  • Prev by Date: Matrix manipulation
  • Next by Date: Re: Help needed with List!
  • Previous by thread: Curve Fitting w/ Parametric Equations
  • Next by thread: ContourPlot: non-rectangular domains?