Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: sampling a spline

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106103] Re: [mg106031] sampling a spline
  • From: "David Annetts" <david.annetts at iinet.net.au>
  • Date: Fri, 1 Jan 2010 05:37:20 -0500 (EST)
  • References: <200912310812.DAA24600@smc.vnet.net>

Hi Charles,

> How does one uniformly sample a spline gotten from the 
> command SplineFit?

Did you try Table?

Needs["Splines`"]
pnt = {{0, 0}, {1, 1}, {2, 4}, {3, 9}, {4, 16}};
spl = SplineFit[pnt, Cubic]
tbl = Table[spl[t], {t, 0, 4, .2}]
Show[{
  ListPlot[pnt, Joined -> True],
  ListPlot[tbl, PlotStyle -> Red]
  }
 ]

Regards,

Dave.



  • Prev by Date: Question about the derivative of Abs
  • Next by Date: Re: Wrapping Begin["Context`"], ..., End[] into a function
  • Previous by thread: Re: Question about the derivative of Abs
  • Next by thread: Re: sampling a spline