Can the "menu" user dialog have multiple outputs?

Is there a way to create a menu of user inputs but ask for multiple inputs? More specifically can the menu function (or other similar function) be used to generate multiple outputs.
Using the example from the help for the function "menu": choice = menu('Choose a color','Red','Blue','Green') Is there a way to answer the question "Choose 2 colors? rather than just one such that a user selects a predefined number of buttons?
Thanks, Elizabeth

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 13 Jan. 2012

0 Stimmen

use listdlg() and set the 'SelectionMode' as 'multiple'

Kategorien

Mehr zu App Building finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 13 Jan. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by