Main Content


(To be removed) Remove virtual world from memory

vrworld/delete will be removed in a future release. For more information, see Version History.





A vrworld object representing a virtual world.


The delete method removes from memory the virtual world associated with a vrworld object. The virtual world must be closed before you can delete it.

Deleting a virtual world frees the virtual world from memory and invalidates all existing vrworld objects associated with the virtual world.

If vrworld_object is a vector of vrworld objects, all associated virtual worlds are deleted.

You do not commonly use this method. One of the possible reasons to use this method is to ensure that a large virtual world is removed from memory before another memory-consuming operation starts.

Version History

Introduced before R2006a

collapse all

R2023b: To be removed

The vrworld/delete will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.