www.gusucode.com > sl3d 案例源码程序 matlab代码 > sl3d/CheckValidityofFigureHandlesExample.m
%% Check Validity of Figure Handles %% % 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)