Previous Up Next

3.17.1  Animation of a 2D graph : animate

animate can create a 2-d animation with graphs of functions depending of a parameter. The parameter is specified as the third argument of animate, the number of pictures as fourth argument with frames=number, the remaining arguments are the same as those of the plot command, see section 3.3, p. ??.
Input :


Output :

a sequence of graphic representations of y=sin(ax) for 11 values of a between -2 and 2

Previous Up Next