I have a GUI with a button and I want that if the button is clicked: something happens. If it's long pressed: after I release the button another thing happens. I'm not sure if there's a way to do exactly this but something similar would be nice. The important thing is that I maintain only one button.
MATLAB: Button is being long pressed or just clicked
button longpressed
Best Answer