You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Sky Sartorius (2026). Validated Input Function (https://ch.mathworks.com/matlabcentral/fileexchange/53553-validated-input-function), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: TXTMENU - Text-Based Menu for the Command Window
General Information
- Version 1.0.0.0 (5.28 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |