Hi, I have the an issue on my GUI environment with a a slider (e.g. slider_myslider), which calls a callback function everytime is being moved, e.g.
function slider_myslider_Callback(hObject,eventdata,handles)disp('start');myfunction()disp('stop');endfunction myFunction()disp('myFunction');"wait 10sec"end
Every time I move the silder the above callback functions is called. I press it two time what I'm going to get is:
However what I would like to have is
At the beginning I thought it had to do with multithreading, however I think it has to do with the fact that the call of myFunction is not asynchronous. Any suggestions?