I've designed an audio experiment where a sound is presented and subjects then have to respond using a touchscreen by pressing one of three buttons. I've made it so that once a sound is played, buttons are then enabled, and once they are pressed, they are disabled. When I press the first button twice, even though it is disabled after the first press, I get the following error:
??? Error using ==> feval
Undefined function or method 'pushbutton1_ButtonDownFcn' for input
arguments of type 'struct'.
Error in ==> gui_mainfcn at 96
Error in ==> run_timbre_exp at 42
Error in ==>
??? Error using ==> pause
Error while evaluating uicontrol ButtonDownFcn
The weird part is that I get this error for only ONE of the buttons. Any ideas as to what is going on?