12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

listdlgPurpose2listdlgCreate list selection dialog boxSyntaxDescription[Selection,ok] = listdlg('ListString',S,...)[Selection,ok] = listdlg('ListString',S) creates a modal dialog boxthat enables you to select one or more items from a list. Selection is a vectorof indices of the selected strings (in single selection mode, its length is 1).Selection is [] when ok is 0. ok is 1 if you click the OK button, or 0 if you clickthe Cancel button or close the dialog box. Double-clicking on an item orpressing Return when multiple items are selected has the same effect asclicking the OK button. The dialog box has a Select all button (when inmultiple selection mode) that enables you to select all list items.Inputs are in parameter/value pairs:Parameter'ListString''SelectionMode''ListSize''InitialValue''Name''PromptString''OKString''CancelString'DescriptionCell array of strings that specify the list box items.String indicating whether one or many items can beselected:'single' or 'multiple' (the default).List box size in pixels, specified as a two elementvector, [width height]. Default is [160 300].Vector of indices of the list box items that areinitially selected. Default is 1, the first item.String for the dialog box’s title. Default is ''.String matrix or cell array of strings that appearsas text above the list box. Default is {}.String for the OK button. Default is 'OK'.String for the Cancel button. Default is 'Cancel'.'uh' Uicontrol button height, in pixels. Default is 18.'fus' Frame/uicontrol spacing, in pixels. Default is 8.'ffs' Frame/figure spacing, in pixels. Default is 8.2-292

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!