Behaviour of the animation toolbar
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
|Objects||AnimationStyle Default Values|
AnimationStyle determines how an animation
is played in VCam once it is activated.
AnimationStyle determines what has to be
done when an animation reaches the end of its playing time. With
animation stops, with
BackAndForth the animation
reverts and runs through to the beginning and with
jumps back to the beginning and runs on from there on.
AnimationStyle sets the initial value of
Animation Style menu in the animation toolbar
according to its value.
This example shows an animation which builds up a picture frame
by frame and at the end of the animation time the complete picture
is visible. For this kind of animation the value
a good choice for
plot(plot::Line2d([a/36, 0], [sin(a/18*PI), cos(a/18*PI)], VisibleAfter = a/7.2, Color = [sin(a/18*PI), sin(a/18*PI), cos(a/18*PI)]) $ a = -36..36, AnimationStyle = RunOnce)
This example plays in an endless loop and the value
choosen because first frame is the natural successor of the last frame
of the animation:
plot(plot::Function2d(sin(a*x), x = -PI..PI, a = -PI..PI), AnimationStyle = Loop)
In this example the circle grows from radius 0 to
radius 1. With
= BackAndForth the circle grows and shrinks in an endless
plot(plot::Circle2d(a, a = 0..1), AnimationStyle = BackAndForth)