Specifications

Programming the GUI
2-23
Add the code after the comments following the function definition, as shown
below:
Surf push button callback:
% --- Executes on button press in surf_pushbutton.
function surf_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to surf_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Display surf plot of the currently selected data
surf(handles.current_data);
You can add similar code to the Mesh and Contour push button callbacks after
the autogenerated code.
Add this code to the
Mesh push button callback:
% Display mesh plot of the currently selected data
mesh(handles.current_data);
Add this code
Autogenerated code