Validated Input Function

バージョン 1.0.0.0 (5.28 KB) 作成者: Sky Sartorius
Like the built-in input function but with the ability to impose constraints and checks on user input
ダウンロード: 325
更新 2015/10/16

ライセンスの表示

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 AnswersGenetic Algorithm についてさらに検索
謝辞

ヒントを得たファイル: 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!
バージョン 公開済み リリース ノート
1.0.0.0