1

How can I export data, which is plotted using something such as:

Plot[Γ[x]/(1.6*10^(-19)), {x, 0.1, 1.2}]

into a .txt file in Mathematica?

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
query
  • 11
  • 1
  • 2
  • 1
    Are you looking to export the plot as image or do you really want the point data created by the Plot function? – m_goldberg Feb 27 '13 at 13:56

2 Answers2

1

You need to create the data using Table, as

Table[{x, Γ[x]/(1.6*10^(-19))}, {x, 0.1, 1.2, 0.01}]

and export the result using Export["output.txt", result, "Table"]

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
0

Also:

Export["output.txt", Cases[Plot[Sin[x], {x, 0.1, 1.2}], Line@x__ -> x, Infinity], "Table"]
Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453