MathGroup Archive 2006

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

Search the Archive

Re: NDolve + ParametricPlot


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