Matlab Lect 15
Matlab Lect 15
INTERFACE) IN MATLAB,
DIFFERENT FILTERS FUNCTION IN
MATLAB.
Lecture 15
MATLAB GRAPHICAL USER INTERFACE
interface to a program.
1. Components
2. Containers
3. Callbacks
COMPONENTS OF GUI
Figure
Panel
Button Group
Pushbutton
Toggle Button
Radio Button
Checkbox
Edit Box
List Box
Popup Menus
Slider
Frame
Text Field
Menu Items
Context Menus
Toolbar
Toolbar
Toolbar Toggle
CODE
% --- Executes on button press in BtnZero.
function BtnZero_Callback (hObject, eventdata, handles)
% hObject handle to BtnZero (see GCBO)
% eventdata reserved - to be described in a future version of
MATLAB
% handles structure with manage and user data (see GUIDATA)
textString=get (handles. edit1,'string');
textString=strcat(textString,'0');
set (handles. edit1,'string', textString);