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.
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. |
||||
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.
|
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.
|
|||
|
|
|
Here's one way, plot T as a function of both t and x:
Another way is to build a function T[t] for each x, then plot the ones you want
|
||||
|
|
Plotin the docs. AndTable,MaporRangeto build the array – Rojo Oct 27 '12 at 19:37Manipulate[Plot[Exp[-t]Sin[x],{x,-4Pi,4Pi},PlotRange->{-E,E}],{t,-1,1}]– murray Oct 27 '12 at 19:52