Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10812
| From | "Alexey Popkov" <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: how to export to Excel in Mathematica from a Parametricplot command |
| Date | 2012-07-05 18:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jt4np8$4n6$1@smc.vnet.net> (permalink) |
| References | <jstl0d$k81$1@smc.vnet.net> |
<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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to export to Excel in Mathematica from a Parametricplot command mrafiee20@gmail.com - 2012-07-03 02:22 +0000 Re: how to export to Excel in Mathematica from a Parametricplot command "Alexey Popkov" <lehin.p@gmail.com> - 2012-07-04 07:36 +0000 Re: how to export to Excel in Mathematica from a Parametricplot command Dominik Hezel <sendme2000@me.com> - 2012-07-04 07:37 +0000 Re: how to export to Excel in Mathematica from a Parametricplot command "Alexey Popkov" <lehin.p@gmail.com> - 2012-07-05 18:52 +0000 Re: how to export to Excel in Mathematica from a Parametricplot command Dominik Hezel <sendme2000@me.com> - 2012-07-05 18:53 +0000
csiph-web