Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: how to export to Excel in Mathematica from a Parametricplot command
Replies: 8   Last Post: Jul 5, 2012 2:53 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alexey

Posts: 266
Registered: 6/14/08
Re: how to export to Excel in Mathematica from a Parametricplot command
Posted: Jul 5, 2012 2:52 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


<mrafiee20@gmail.com> wrote: news:jstl0d$k81$1@smc.vnet.net...
> 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.?
>
>


Try this:
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}];
f[t_] = {x[t], y[t]} /. First[%];
ParametricPlot[f[t], {t, 0, 10}]
points = First@Cases[%, l_Line :> First@l, Infinity];
Export["points.dat", points, "Table"]

HTH,

Alexey






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.