# Manipulate Sine plot [closed]

I want to plot Sin[a*x] and have used the following code:

Plot[Sin[a*x], {a,0,10},{x, 0, 10}]


But I am not getting any plot. Any Ideas?

• What do you expect to get? Have you seen Plot documentation? – Kuba Mar 3 '19 at 14:37
• DensityPlot[Sin[a*x], {a, 0, 10}, {x, 0, 10}, PlotLegends -> Automatic, PlotPoints -> 50] – corey979 Mar 3 '19 at 15:08

Are you looking for something like this?

Manipulate[Plot[Sin[a*x], {x, 0, 10}], {a, 0, 10}]


or this?

Plot[Evaluate@Table[Sin[a*x], {a, 0, 2}], {x, 0, 10}]

• Yes, something like the first one. Thanks – Priyesh Sharma Mar 3 '19 at 16:21
• I tried f[max_] := Plot[Sin[a*x], {x, 0, max}] Manipulate[f[max], {a, 1, 5}, {max, 10, 20}]. But, that wasn't giving me the desired result either. Didn't understand why though – Priyesh Sharma Mar 3 '19 at 16:28
• @Maria because mathematica.stackexchange.com/questions/10604/… – Kuba Mar 3 '19 at 18:40
Plot3D[Sin[a*x], {a,0,10},{x, 0, 10}]

• Can't I get a 2D plot? – Priyesh Sharma Mar 3 '19 at 14:36
• There are three dimensions here: $a$, $x$, and $\sin(a x)$. Project one out and you can have a 2D plot; but you'll have to say how. – Roman Mar 3 '19 at 14:38