I'm new to Mathematica and I'm trying to do this project where I have to animate multiple circles.
I have 4 circles, each with x = 1, 2, 3, 4
, respectively. Each y
position is given by a function F(x, n, t)
. I want to animate the circles with respect to t
, manipulate n
and have the four circles side-by-side.
I came up with this
Manipulate[
Animate[
Graphics[{Circle[{x, F[x, n, t]}, 0.2]},
PlotRange -> {{0, 6}, {-2, 2}}], {t, 0, 10}],
{n, 1, 4, 1}]
which works for a defined value of x
.
Can anyone help me figure out how to animate for all values of x at the same time?