You can use the Simulink® 3D Animation™ You can also use the Simulink 3D Animation Viewer to play animation files, using one of these approaches:
At the MATLAB® command line, use vrview. For example, enter:
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 close the viewer and delete the world, get the handle of the vrfigure object and close it, as follows:
f=get(w,'Figures') close(f); delete(w);
Or, to close all vrfigure objects and delete the world, type