Frequency Domain Identification Toolbox
  Go to function:
    Search    Help Desk 
yesinput    Examples   See Also

Intelligent input routine.

Syntax

Description

yesinput is an "intelligent" version of the statement input. It displays a message as input usually does (string question), offers a default answer (defined by default) which can be accepted by pressing Return or Enter, and checks the validity of the answer using the optional argument possib. The type of the returned answer (string or number) is determined by the type of default. If the type of the desired answer is string, possib may be either a string array, where the rows contain the acceptable answers, or a string containing the acceptable answers, separated by ('|') characters. If a number is desired, possib may be an 1x2 vector, containing the lower and higher limits for the input:

If a number is to be typed in, any valid MATLAB expression may be given, e. g., 2*pi/128.

If the answer is not acceptable, the user is prompted again for a new answer.

For testing purposes, yesinput can be forced to accept the default answers and not to wait for the keyboard, by defining the global variable yesinpacceptdef with value 'yes'.

Examples

See Also



[ Previous | Help Desk | Next ]