How to make a timer execute an internal function in gui?
古いコメントを表示
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Code Execution についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!