A supper simple GUI with only one push button doesn't work weirdly
Show older comments
I created a very simple GUI on MATLAB version R2015a. That program just only contains a push button like below figure:

When the button is hit, the callback "disp('Hello World')" will be executed. But when I run the GUI, nothing happens. Could some one help me? Below is the callback:
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%surf(membrane(1))
disp('Hello World')
%guidata(hObject, handles);
Accepted Answer
More Answers (1)
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!