MATLAB: Coding while loops to validate user inputs

Engineering with Dr. Kelsey Joy
Engineering with Dr. Kelsey Joy
3.2 هزار بار بازدید - 3 سال پیش - How to code while loops
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).  

Here is the code that I wrote in the video along with additional notes:
https://www.mathworks.com/matlabcentr...

Here is an example of validating a number collected as a string:
MATLAB: While loop to validate number...

How to Create Programs in MATLAB tutorial playlist: How to Create Programs in MATLAB (tut...

#MATLAB #learntocode #whileloop #while #whileloops #userinput #engineeringstudent #engineeringstudents #engineering #engineer #coding #code #programming #program

Chapters:
00:00 Introduction to loops and while loops
00:47 Using while loops to control valid numeric inputs
06:40 Using while loops to control valid text (character array)
11:27 Summary - purpose of while loops
3 سال پیش در تاریخ 1400/07/10 منتشر شده است.
3,212 بـار بازدید شده
... بیشتر