Main Content

wait (Aero.VirtualRealityAnimation)

Wait until animation is done playing

Since R2022a

Syntax

wait(h)
h.wait

Description

wait(h) and h.wait wait until the animation is done playing. MATLAB® is blocked until the animation stops.

Examples

Wait until animation of VirtualRealityAnimation animation object, h stops running.

h = Aero.VirtualRealityAnimation;
h.wait;

Version History

Introduced in R2022a