User`s guide

Add Components to the GUI
The code that generates the message is part of the pushbutton1_Ca llback,
shown below :
function pushbu tton 1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata re serv ed - to be defi ned in a future ver sion of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.textStatus, 'String', 'Push button pus hed')
This callback is activated w h en pushbutton1 is clicked. It places the string
'Push button pushed' in the static text field named textStatus using the
set function. All the controls in controlsuite perform this action, but some of
them do other things as well.
TheToggleButton. When the user clicks the Toggle Button button, this
is the result.
The callback for this button, togglebutton 1, contains this code:
fu
nction toggle butt on1_Callback(hObject, eventdata, handles)
6-27