Prev: Button Up/Down Function
Next: reshaping to iterate matrix multiplication across third dimension
From: Geoff Wilkie on 18 Feb 2010 15:26 My GUI figure has two buttons to close it. The first works fine, but the second tells me "Function 'ExitButton_Callback' is not defined for values of class 'struct'." The two functions in the .m file are identical except for the function names, and those function names correspond correctly with the buttons' respective Property Inspector Callback and Tag fields. (I'll change the second exit button's code to close differently, after I can get it recognized.) Both the .fig and .m files indicate they are saved. I haven't clicked on anything else in the GUI that would change hObject, eventdata, or handles. Why might two pushbuttons with the same code behave differently? function CancelButton_Callback(hObject, eventdata, handles) close; function ExitButton_Callback(hObject, eventdata, handles) close;
|
Pages: 1 Prev: Button Up/Down Function Next: reshaping to iterate matrix multiplication across third dimension |