Check validity of
vrfigure object handles
valid_handles = isvalid(vrfigure_vector)
valid_handles = isvalid(
vrfigure handles are valid.
figure_vector— Virtual reality figure vector
Virtual reality figure vector, specified as a
Virtual reality figure image, captured as a logical array. The
array that contains a
1 where the
are valid and returns a
0 where they are not.
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)
firstCheck = logical 1
close(f) secondCheck = isvalid(f)
secondCheck = logical 0