Add Components to a Programmatic UI
Add Components to a Programmatic UI
In this section...
“User Interface Controls” on page 10- 9
“Tables” on page 10- 21
“Panels” on page 10- 22
“Button Groups” on page 10- 24
“Axes” on page 10- 26
“ActiveX Controls” on page 10- 28
“How to Set Font Characteristics” on page 10- 28
User interface controls are common UI components, such as buttons, check boxes,
and sliders. Tables present data in rows and columns. Panels and button groups are
containers in which you can group together related elements in your UI. ActiveX
components enable you to display ActiveX controls.
User Interface Controls
- “Push Button” on page 10- 9
- “Radio Button” on page 10- 10
- “Toggle Button” on page 10- 11
- “Check Box” on page 10- 12
- “Slider” on page 10- 13
- “Static Text” on page 10- 15
- “Editable Text Field” on page 10- 16
- “Pop-Up Menu” on page 10- 18
- “List Box” on page 10- 19
Push Button
This code creates a push button:
f = figure;
pb = uicontrol(fh,'Style','pushbutton','String','Button 1',...
'Position',[50 20 60 40]);