Documentation

isvalid

Class: vrfigure

Check validity of vrfigure object handles

Syntax

valid_handles = isvalid(vrfigure_vector)

Description

valid_handles = isvalid(vrfigure_vector) detects whether the vrfigure handles are valid.

Input Arguments

expand all

Virtual reality figure vector, specified as a vrfigure object.

Output Arguments

expand all

Virtual reality figure image, captured as a logical array. The array that contains a 1 where the vrfigure handles are valid and returns a 0 where they are not.

Examples

expand all

Check whether the figure handles of the vrfigure object are valid. The first check shows that the figure handle is valid, but the second check shows that the handle is invalid because the figure is closed.

myworld = vrview('vrpend.wrl');
f = vrfigure(myworld);
firstCheck = isvalid(f)
close(f)
secondCheck = isvalid(f)
firstCheck =

  logical

   1


secondCheck =

  logical

   0

Introduced before R2006a

Was this topic helpful?