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: https://www.youtube.com/watch?v=_LQQpDSyz4o&list=PLfiwq4nBiqCP7t71Iz_O19yR4Yo3EIOHC TI-84 Plus CE Graphing Calculator Tutorial series: https://www.youtube.com/watch?v=am4WaMH6HkI&list=PLfiwq4nBiqCPpioPaY9euf6tkxvn5Zbkf TI-30XS Multiview Tutorial series: https://www.youtube.com/watch?v=3jqlr_1nFiA&list=PLfiwq4nBiqCMlniF-yAQVEzGQ4WoY4D5J Casio Scientific Calculator Tutorial series: https://www.youtube.com/watch?v=6j0SQU90CME&list=PLfiwq4nBiqCPaeMk7Gob4HC3ZiWmsOsir 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
Download
0 formatsNo download links available.