T = timer('Period',400,... %period 'ExecutionMode','fixedRate',... %{singleShot,fixedRate,fixedSpacing,fixedDelay} 'BusyMode','drop',... %{drop, error, queue} 'TasksToExecute',inf,... 'StartDelay',0,... 'TimerFcn',@(~,~)Untitled(q,a,norbert),... 'StartFcn',[],... 'StopFcn',[],... 'ErrorFcn',[]); start(T);Error while evaluating TimerFcn for timer 'timer-1'Invoke Error, Dispatch Exception: Source: Microsoft Excel Description: Open method of Workbooks class failed Help File: xlmain11.chm Help Context ID: 0
I get the above error from time to time with the above matlab code. I dont know how to eliminate this source of error. Can anyone give me a suggestion? I tried the try catch method but it doesnt help.
thanks
Best Answer