Main Content


(To be removed) Handle for active virtual reality figure

vrgcf will be removed in a future release. For more information, see Version History.


h = vrgcf


h = vrgcf returns the handle of the current virtual reality figure. The current virtual reality figure is the currently active virtual reality figure window in which you can get and set the viewer properties. If no virtual reality figure exists, the MATLAB® software returns an empty vrfigure object.

This method is most useful to query and set virtual reality figure properties.

Version History

Introduced in R2008b

collapse all

R2023b: To be removed

The vrgcf 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.

See Also