Value
scalar or vector
Current value of uicontrol. The uicontrol style determines the possible values this property can have:
*
Check boxes set Value to Max when they are on (when selected) and Min when off (not selected).
*
List boxes set Value to a vector of indices corresponding to the selected list entries, where 1 corresponds to the first item in the list.
*
Pop-up menus set Value to the index of the item selected, where 1 corresponds to the first item in the menu. The Examples section shows how to use the Value property to determine which item has been selected.
*
Radio buttons set Value to Max when they are on (when selected) and Min when off (not selected).
*
Sliders set Value to the number indicated by the slider bar.
*
Toggle buttons set Value to Max when they are down (selected) and Min when up (not selected).
*
Editable text, push buttons, and static text do not set this property.
Set the Value property either interactively with the mouse or through a call to the set function. The display reflects changes made to Value.
Partager