neuroscience
Bioengineer
- Aug 26, 2005
- 1
I have a GUI with 8 push-buttons and I need to count which button was clicked and the order this clicking occured. Additionally, I need the GUI to reset after n amount of clicks occured. Any suggestions??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
counter = get(gcf, 'User')
counter = counter+1;
if counter == 8
%code to reset GUI here
counter == 0;
end
set(gcf, 'User', counter);