www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SetTimerObjectPropertyExample.m

    %% Set Timer Object Property  
%% 
% Instantiate a timer object and make the object invisible. Display the
% objects's visibility and delete the object. 

% Copyright 2015 The MathWorks, Inc.

t = timer;
set(t,'ObjectVisibility','off')
get(t,'ObjectVisibility')
delete(t)