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

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...
TI-84 Plus CE Graphing Calculator Tutorial series:
• How to Adjust the Scre...
TI-30XS Multiview Tutorial series:
• How to Get Square Root...
Casio Scientific Calculator Tutorial series:
• How to Edit Entries on...
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

Пікірлер: 1

  • @EHbhuiyan
    @EHbhuiyan2 жыл бұрын

    Hopefully the video is helpful! If you haven't already, please SUBSCRIBE!!!

Келесі