I'm making a simple real time data viewer with buttons like play, pause and slider using MATLAB GUI. After the user presses play slider needs to be updated every step (50 samples per second). That functionality is interfering with manually moving slider (you'd have to move it in 1/50th of the second). For now I've set updating of the slider every 50th time (so once every second) and it works fine, unless you hold the slider longer then it takes to update.
The problem is that if slider property Enable is on, Buttondownfcn doesn't work for left click (it does for right one). Using Buttondownfcn I would be able to lock the updating and solve the problem completely. Is there any way around this?
% --- Executes on slider movement.
function slider_Callback(hObject, eventdata, handles)
disp('Slider movement')
% --- Executes on button down.
function slider_ButtonDownFcn(hObject, eventdata, handles)
disp('Button down')