MATLAB Creating Graphical User Interfaces

(Barry) #1

8 Programming a GUIDE UI


When the end user selects a radio button or toggle button in the button group, this
function determines which button the user selected based on the button’s Tag property.
Then, it executes the code inside the appropriate case.

Note:The button group’s SelectedObject property contains a handle to the button
that user selected. You can use this property elsewhere in your UI code to determine
which button the user selected.

Menu Item


The code in this section contains example callback functions that respond when the end
user selects Edit > Copy > To File in this menu.
Free download pdf