MathGroup Archive 2006

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

Search the Archive

Re: NDolve + ParametricPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67534] Re: NDolve + ParametricPlot
  • From: "Norbert Marxer" <marxer at mec.li>
  • Date: Fri, 30 Jun 2006 04:14:00 -0400 (EDT)
  • References: <e7vkhi$sjo$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello

The first argument in ParametricPlot (i.e. Evaluate[{x[t] /. sol,
D[x[t] /. sol]}] ) gives

    {  { InterpolatingFunction[{{0.,3.}},<>][t]} ,
{InterpolatingFunction[{{0.,3.} },<>][t]}}

You must get rid of the curly List brackets around the
InterpolatingFunction for ParametricPlot to work correctly. You can do
this using [[1]]. Note also that Evaluate is not necessary.

The correct command then reads:

ParametricPlot[{(x[t] /. sol)[[1]], (D[x[t] ] /. sol)[[1]]}, {t, 0,
3}];

Best Regards
Norbert Marxer
www.mec.li


  • Prev by Date: Problem with LegendreQ
  • Next by Date: Plotting Partial Differential Equations
  • Previous by thread: Re: NDolve + ParametricPlot
  • Next by thread: Re: NDolve + ParametricPlot