| MATLAB Function Reference | ![]() |
Generate a menu of choices for user input
Syntax
Description
k = menu('mtitle',' displays the menu whose title is in the string variable opt1','opt2',...,'optn')
'mtitle' and whose choices are string variables 'opt1', 'opt2', and so on. menu returns the value you entered.
Remarks
To call menu from another ui-object, set that object's Interruptible property to 'yes'. For more information, see the MATLAB Graphics Guide.
Examples
k = menu('Choose a color','Red','Green','Blue') displays
After input is accepted, use k to control the color of a graph.
See Also
| memory | mesh, meshc, meshz | ![]() |