Validated Input Function
版本 1.0.0.0 (5.3 KB) 作者:
Sky Sartorius
Like the built-in input function but with the ability to impose constraints and checks on user input
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.
引用格式
Sky Sartorius (2024). Validated Input Function (https://www.mathworks.com/matlabcentral/fileexchange/53553-validated-input-function), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2015b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Genetic Algorithm 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |