Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Play Animations with Simulink 3D Animation Viewer

To play animation files, you can use a web browser or you can use the Simulink® 3D Animation™ Viewer using one of these approaches:

At the MATLAB® command line, use vrview. For example, enter:

w=vrview('vrplanets_anim_1.wrl');
set(w,'TimeSource','freerun');

The vrview command displays the default Simulink 3D Animation Viewer for the animation file. Setting the TimeSource property of the set method to 'freerun' directs the viewer to advance its time independent of the MATLAB software.

To stop the animation, type:

set(w,'TimeSource','external');

To close the viewer and delete the world, get the handle of the vrfigure object and close it:

f=get(w,'Figures')
close(f);
delete(w);

Or, to close all vrfigure objects and delete the world, type

vrclose
delete(w);

See Also

Functions

Related Examples

More About

Was this topic helpful?