Validated Input Function

Like the built-in input function but with the ability to impose constraints and checks on user input
325 téléchargements
Mise à jour 16 oct. 2015

Afficher la licence

s = VALIDATEDINPUT(prompt,'s',validStrings) will process the input S using s = validatestring(S,validStrings).
k = VALIDATEDINPUT(prompt,classes,attributes) checks the input A using validateattributes(A,classes,attributes).

k = VALIDATEDINPUT(prompt,validationFcn) checks the input using the provided validationFcn.

If the user input provided at the prompt is invalid, the user will be informed of the reason why and re-prompted until a valid input is given.

Citation pour cette source

Sky Sartorius (2024). Validated Input Function (https://www.mathworks.com/matlabcentral/fileexchange/53553-validated-input-function), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2015b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Genetic Algorithm dans Help Center et MATLAB Answers
Remerciements

Inspiré par : TXTMENU - Text-Based Menu for the Command Window

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0