listdlg
Create list selection dialog box
Description
[
creates a modal
dialog box that allows the user to select one or more items from the specified
list.indx
,tf
] = listdlg('ListString',list
)
The list
value is the list of items to present in the dialog
box.
The function returns two output arguments, indx
and
tf
containing information about which items the user
selected.
The dialog box includes Select all,
Cancel, and OK buttons. You can
limit selection to a single item by using the name-value pair,
'SelectionMode','single'
.
[
specifies additional options using one or more name-value pair arguments. For
example, indx
,tf
] = listdlg('ListString',list
,Name,Value
)'PromptString','Select a Color'
presents Select
a Color
above the list.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Version History
Introduced before R2006a