Can someone please explain how the function handle in this code works! Currently, the code is not jumping to the function and I'm trying to fix it. And can You please explain, how can I write the same code without using the function handle. This code is written for a Matlab GUI.
%...
handles.Data.Audio.TimerFcn={@TimerFcn, handles};
%...
function TimerFcn(audio,~,handles)
set(handles.Graphics.Line(2,handles.AudioNum),'XData',handles.Data.TS.Time((handle.Data.k+1)*handles.Data.fs+audio.CurrentSample*[1,1]));
set(handles.Graphics.Line(2,handles.AudioNum),'Color' , 'y');
guidata(handles.Fig,handles);
So the code is using the function handle for "TimerFcn" function, and I don't really understand how this works. Therefore I can't fix the bug.