Using Timer Objects, I noticed some behaviour I could not explain.
Creating a timer with fixed rate, I was not able to stop it with Timer.stop(). However, stop(Timer) does work. What am I missing?
Timer =timer('Period', 1); Timer.TimerFcn = @(myTimerObj, thisEvent)disp('1 second has elapsed'); Timer.ExecutionMode = 'fixedRate'; Timer.start(); pause(2) stop(Timer); %<----works
%Timer.stop; %<----does not work
Best Answer