In MATLAB, how can you have a callback execute while a slider is being dragged?

前端 未结 3 1945
萌比男神i
萌比男神i 2020-12-06 06:12

I have created a MATLAB GUI using GUIDE. I have a slider with a callback function. I have noticed that this callback, which is supposed to execute \'on slider movement\', in

3条回答
  •  遥遥无期
    2020-12-06 06:52

    Just for the record, this subject is discussed in detail here: http://UndocumentedMatlab.com/blog/continuous-slider-callback/ - several alternative solutions are presented there. gnovice's solution using addlistener is equivalent to the handle.listener alternative, since addlistener is basically just a wrapper for the latter.

提交回复
热议问题