Educational: Validating User Inputs (numbers and strings)

版本 1.0.0 (1.7 KB) 作者: Dr. Kelsey Joy
error checking, user stopping, validating user inputs
10.0 次下载
更新时间 2021/11/27

查看许可证

This code is explained in the following YouTube Video:
While Loops - Validate User Input: https://youtu.be/LyKb1MvCiG8
In this video I cover how to code while loops in MATLAB and how these can be used to control the type of information your user must provide to continue in the code (user stopping, error checking, validating user input). I provide two main demonstrations: 1. error checking a number (whole, positive number less than or equal to 157) and 2. error checking a string (yes or no).
For more of my YouTube Videos, check out my MATLAB tutorial playlist: https://youtube.com/playlist?list=PLmB_c16LoAcWz_5qK1XpBlP0DiD6cgU-r
Also subscribe to my channel (Engineering with Dr. Kelsey Joy): https://www.youtube.com/channel/UCmZl7PfanvCILyiQ5R9rONA

引用格式

Dr. Kelsey Joy (2024). Educational: Validating User Inputs (numbers and strings) (https://www.mathworks.com/matlabcentral/fileexchange/102674-educational-validating-user-inputs-numbers-and-strings), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0