I am unable to call a function that is inside of GUI (not calling the external function). The timer works well if the function is external, but I want it to be internal, that I will have just one file. I have the inicialization of timer in opening function:
function GUI_OpeningFcn(hObject, eventdata, handles, varargin) handles.t = timer('BusyMode', 'queue', 'ExecutionMode',...'fixedRate', 'Period', 4.0, 'TimerFcn', 'funkcija'); start(handles.t);
The function I want to run each time with usage of initialized timer:
function funkcija(EventData, handles) a = 1;
I know there is something wrong with the input parameters, but I just cannot figure out what exactly.
Best Answer