MATLAB: Set timer to display sth in certain interval

displayintervalsecondtimer

Hello everyone,
I want my timer to display dots in every 0.01 second for one second.
Thanks.

Best Answer

T = timer('Period',0.01,... %period
'ExecutionMode','fixedRate',... %{singleShot,fixedRate,fixedSpacing,fixedDelay}
'BusyMode','drop',... %{drop, error, queue}
'TasksToExecute',100,...
'StartDelay',0,...
'TimerFcn',@(src,evt)disp('.'),...
'StartFcn',[],...
'StopFcn',[],...
'ErrorFcn',[]);
start(T);