MathGroup Archive 2012

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

Search the Archive

Re: how to export to Excel in Mathematica from a Parametricplot command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg127177] Re: how to export to Excel in Mathematica from a Parametricplot command
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Wed, 4 Jul 2012 03:32:14 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

sol = NDSolve[{
    y'[t] == y[t] (x[t] - 1),
    x'[t] == x[t] (2 - y[t]),
    x[0] == 1, y[0] == 2.7},
   {x, y}, {t, 0, 10}];

plt = ParametricPlot[{x[t], y[t]} /. sol, {t, 0, 10}]

points = Cases[plt, Line[pts_] :> pts, Infinity][[1]];

Export["plotPts.xls", points];


Bob Hanlon


On Mon, Jul 2, 2012 at 10:20 PM,  <mrafiee20 at gmail.com> wrote:
> Hi all,
>
> This example is from Mathematica:
> http://reference.wolfram.com/mathematica/ref/ParametricPlot.html
>
> NDSolve[{y'[t] == y[t] (x[t] - 1), x'[t] == x[t] (2 - y[t]),
>    x[0] == 1, y[0] == 2.7}, {x, y}, {t, 0, 10}];
> ParametricPlot[Evaluate[{x[t], y[t]} /. First[%]], {t, 0, 10}]
>
> My question is:
> How can I export the results (*.xls or *.dat) to plot it with other programs like Origin pro, Excel, Tecplot, etc.?
>



  • Prev by Date: NonlinearModelFit to multiple data sets simultaneously?
  • Next by Date: Re: some Experience with webMathematica
  • Previous by thread: Re: how to export to Excel in Mathematica from a Parametricplot command
  • Next by thread: Re: how to export to Excel in Mathematica from a Parametricplot command