Перейти к содержимому

MATLAB If, Else, Elseif Statements | While Loops | Conditional Statements

EHbhuiyan

0:00 / 0:00

MATLAB If, Else, Elseif Statements | While Loops | Conditional Statements

2 035 просмотров · 4 г. назад
EHbhuiyan
11 тыс. подписчиков
2 035 просмотров · 4 г. назад
This is a video in my MATLAB Tutorial series. In this video, I go over conditional statements. I cover If, Else, and Elseif statements in MATLAB with examples. I also go over while loops. I use an example of a grader to help explain the essential ideas behind these conditional statements. The code takes an user input and returns how they did on their exam: at first pass/fail and then letter grades. During the video, I also demonstrate how you can find a list of the various relational operators. I also describe the role of the double ampersand (&&) in MATLAB. I hope the video helps in some way. If you haven't already, please SUBSCRIBE!!! Check out my graphing and scientific calculator tutorial series. Check out the MATLAB Tutorial series:    • How to Create Linearly Spaced Vector in MA...   TI-84 Plus CE Graphing Calculator Tutorial series:    • How to Adjust the Screen Brightness on you...   TI-30XS Multiview Tutorial series:    • How to Get Square Roots in Decimal Form on...   Casio Scientific Calculator Tutorial series:    • How to Edit Entries on Casio Scientific Ca...   Time Stamps: 0:00 Introduction: What's in the Video 0:30 Basic If, Else Statement Structure with Pass/Fail Scores 3:03 Two If Statements to Check that Input Value is within Expected Range 5:05 While Loop to Check that Input Value is within Expected Range 7:22 If, Else, and Elseif Statement for Returning Letter Grades 13:16 List of Relational Operators