Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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?

share|improve this question

marked as duplicate by Yves Klett, Mr.Wizard Feb 27 '13 at 14:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

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"]

share|improve this answer


Export["output.txt", Cases[Plot[Sin[x], {x, 0.1, 1.2}], Line@x__ -> x, Infinity], "Table"]
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.