Main Content

vrnode/isvalid

(To be removed) 1 if vrnode object is valid, 0 if not

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

Syntax

x = isvalid(vrnode_object_vector)

Arguments

vrnode_object_vector

Name of an array of vrnode objects to be queried.

Description

This method returns an array that contains 1 when the elements of vrnode_object_vector are valid vrnode objects, and 0 when they are not.

The vrnode object is considered valid if the following conditions are met:

  • The parent world of the node exists.

  • The parent world of the node is open.

  • The node with the given vrnode handle exists in the parent world.

Version History

Introduced before R2006a

collapse all

R2023b: To be removed

The vrnode/isvalid will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks in Unreal Engine Scenario Applications to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Get Started Creating Virtual World with Actors.