How to make a timer execute an internal function in gui?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Code Execution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!