Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

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

Possible Duplicate:
How do I use Map for a function with two arguments?

I have a function, e.g. $T(x,t) = \exp(-t)\sin(x)$ and I want to plot, on the same, or different graphs, $T$ as a function of $x$, for an array of $t$ values.

share|improve this question

marked as duplicate by Artes, halirutan, Oleksandr R., R. M. Oct 28 '12 at 2:19

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.

Search for Plot in the docs. And Table, Map or Range to build the array – Rojo Oct 27 '12 at 19:37
You might also want to see this. – J. M. Oct 27 '12 at 19:42
You might also try things like: Manipulate[Plot[Exp[-t]Sin[x],{x,-4Pi,4Pi},PlotRange->{-E,E}],{t,-1,1}] – murray Oct 27 '12 at 19:52

Here is an approach that should work. It shows how to plot the one parameter family of functions all together or separately. Note that, although the separate plots look the same, the scales are different.

enter image description here

share|improve this answer

Here's one way, plot T as a function of both t and x:

 Plot3D[Exp[-t] Sin[x], {t, 0, 5}, {x, -2 Pi, 2 Pi}, PlotRange -> All]

Another way is to build a function T[t] for each x, then plot the ones you want

 T[t_] := Table[Exp[-t] Sin[x], {x, -2 Pi, 2 Pi, 0.01}]; 
 ListPlot[{T[0], T[0.5], T[1], T[1.5], T[2], T[2.5], T[3]}]
share|improve this answer

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