Create vrworld Object for a Virtual World
To connect MATLAB® to a virtual world and to interact with that virtual world through the
MATLAB command-line interface, create
vrnode objects. A virtual world 3D file defines a virtual
The Simulink® interface and the MATLAB interface share virtual world objects. This sharing of objects enables
you to use the MATLAB interface to change the properties of
objects originally created by Simulink with Simulink
3D Animation™ blocks.
After you create a virtual world, you can create a
Open MATLAB. In the MATLAB Command Window, type
myworld = vrworld('virtual world object name')
The MATLAB Command Window displays the messages.
myworld is associated with
the virtual world. You can think of the variable
myworld as a handle
vrworld object stored in the MATLAB workspace.
Your next step is to open a virtual world using the
See Open a Virtual World with MATLAB.