T = timer('Period',120,...
'ExecutionMode','fixedRate',...
'BusyMode','drop',...
'TasksToExecute',inf,...
'StartDelay',0,...
'TimerFcn',@(src,evt)disp('hi'),...
'StartFcn',[],...
'StopFcn',[],...
'ErrorFcn',[]);
start(T);
replace disp('hi') with something useful.
Best Answer