In MATLAB, how can you have a callback execute while a slider is being dragged?
问题 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 fact only runs once the slider has been moved and the mouse released. Is there a way to get a script to run as the slider is being dragged, for live updating of a plot? There would I presume need to be something to stop the script being run too many times. 回答1: Even though the callback of the slider isn't being called as