Skip to Main Content Skip to Search
Product Documentation

vrworld/close - Close virtual world

Syntax

close(vrworld_object)

Arguments

vrworld_object

A vrworld object representing the virtual world.

Description

This method changes the virtual world from an opened to a closed state:

Opening and closing virtual worlds is a mechanism of memory management. When the system needs more memory and the virtual world is closed, you can discard its contents at any time.

Generally, you should close a virtual world when you no longer need it. This allows you to reuse the memory it occupied. The vrworld objects associated with this virtual world stay valid after it is closed, so the virtual world can be opened again without creating a new vrworld object.

Examples

myworld = vrworld('vrpend.wrl')
open(myworld)
close(myworld)

See Also

vrworld | vrworld/delete | vrworld/open

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS