Quantcast

Documentation Center

  • Trial Software
  • Product Updates

sedb.animate

Package: sedb

Turn on or off animation and control speed

Syntax

animate
animate on
animate off
animate on T
animate T
animate(structure)
previous = animate(...)

Description

animate turns the animation capability on and off. By default, animation is on when you start debugging the model.

animate on turns the animation capability on.

animate off turns the animation capability off.

animate on T and animate T sets a delay for the animation. The delay controls the speed of the animation.

animate(structure) sets the animation settings to those specified in structure.

previous = animate(...) returns the previous state of the animation as a structure.

Input Arguments

T

Positive value between 0 and 5 that specifies the animation delay. This value controls the animation speed.

Default: 0

structure

List of options that you specify for animate. This structure has the following fields:

FieldDescription
stateContains animation state, ‘on' or ‘off'.
delayContains animation delay, from real value from 0 to 5.

Output Arguments

previous

Structure of previously specified animation settings. This structure has the following fields:

FieldDescription
stateContains animation state, ‘on' or ‘off'
delayContains animation delay, from real value from 0 to 5

Examples

Turn animation on with delay 0.5 sec.

animate on 0.5
 

Return previously set animation settings in previous.

previous=animate
 

Specify animation settings in structure x, and return them in structure y.

x=animate(0.1);
y=animate(x);

More About

expand all

Tips

  • Use the detail command to control the model components that the animation displays.

  • A negative delay value stops the animation.

See Also

Was this topic helpful?