Documentation of menutext
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
answer = menutext(HeaderText, varargin);
Generate a text menu of choices for user input (no graphical menu)
Presents a text menu in the command window. The menu-items will be
presented as a numbered list in the command window.
The functionality is nearly identical to menu. However, no graphical
menu is presented.
Syntax: answer = menutext(HeaderText, varargin)
HeaderText- String containing the header / descriptive question for the text menu
varargin - multiple strings or cell array of strings containing the mnu options
answer - Scalar containing thenumber of the selected menu option
>> choice = menutext('Select function', 'objfun1', 'objfun2', 'objfun6')
----- Select function -----
Select a menu number:
The number entered by the user in response to the prompt is
returned as choice (i.e. choice = 2 implies that the user selected objfun2).
See also: menu
This document is part of version 3.8
GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab -
The Genetic and Evolutionary Algorithm Toolbox is not public domain
© 1994-2006 Hartmut Pohlheim, All Rights Reserved,