MATLAB for Engineers - Conditional Statements if, else, and elseif

  Рет қаралды 75,862

Spartan Professor

Spartan Professor

5 жыл бұрын

In this video, I introduce you to the conditional statements if, else, and elseif and how to implement them in MATLAB.
First, I walk through the programming logic behind each of the conditional statements using flowcharts. Then, I work an example of how to implement each of the conditional statements in MATLAB.

Пікірлер: 44
@elijahcaudill334
@elijahcaudill334 4 жыл бұрын
Thank you so much!! Perfect explanation! I was having problems with these statements because I was doing it backwards. Great video.
@user-uy3hd2mv9t
@user-uy3hd2mv9t Жыл бұрын
Thank you Dr. David for the excellent explanation!!
@MinhNguyen-qc9dg
@MinhNguyen-qc9dg 3 жыл бұрын
Thank you David for excellent explanation.
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 жыл бұрын
Great videos! I like using the grade example for a simple if statement too!
@desmondselasi8036
@desmondselasi8036 4 жыл бұрын
You have given me a better and vivid explanation. Thanks Sir
@christined330
@christined330 3 жыл бұрын
Thank you for this video. You have explained it very clearly. My assignment for this type was solved after watching this video.
@aminshefai5934
@aminshefai5934 4 жыл бұрын
Thanks for the vivid explanation. Learned some essential things in Matlab.
@athena9357
@athena9357 4 жыл бұрын
You explained so well, and I final get it, thank you!
@zohaibhashim9364
@zohaibhashim9364 3 жыл бұрын
Surely
@melmeja
@melmeja Жыл бұрын
I subscribed you. You are the one only lecturer for best MATLAB tutorial. Thank You!
@SpartanProfessor
@SpartanProfessor 11 ай бұрын
Wow, thanks!
@aartijoshi2540
@aartijoshi2540 3 жыл бұрын
very easy explaination ... it helped me a lot.. thank you.
@oteniarayusuf5145
@oteniarayusuf5145 4 жыл бұрын
Many thanks to you..You did perfectly well
@mehmetberke9872
@mehmetberke9872 3 жыл бұрын
Thanks a lot from Turkey.
@wiseguy724
@wiseguy724 4 жыл бұрын
Thank you very much for this.
@ibadkhan1092
@ibadkhan1092 4 жыл бұрын
thanks sir it is perfect explanation
@sanjeevkumar-vg6go
@sanjeevkumar-vg6go 4 жыл бұрын
thanks a lot from INDIA
@DrPCJha
@DrPCJha 4 жыл бұрын
Nice way to explain. To supplement further, you should explain the same thing by reading the input from a file (data) and writing the comment (output) to another file. Most of the Matlab videos miss on this aspect - reading the data from a file (structured) and creating an output file (structured) with the calculated value. May be in your next video, you take upon this task. Thanks for your excellent effort in putting up this video.
@muhammadchoudhry5864
@muhammadchoudhry5864 3 жыл бұрын
love the way you explain! Hope, you will post more videos
@muhammadchoudhry5864
@muhammadchoudhry5864 3 жыл бұрын
@@SpartanProfessor thanks alot, I am waiting for the 4th video of looping and statements series you are doing. Thanks again!
@missarchanatobria2868
@missarchanatobria2868 3 жыл бұрын
Well explained.
@olooalfredo
@olooalfredo 3 жыл бұрын
Amazing!
@Adventuresbiblestories
@Adventuresbiblestories 2 жыл бұрын
thanku sir your video is really helpful
@abrahamebyfugui326
@abrahamebyfugui326 3 жыл бұрын
Well explained
@niramu9949
@niramu9949 4 жыл бұрын
Thank you very much sir
@learnnewfoodworldwide8806
@learnnewfoodworldwide8806 3 жыл бұрын
David do more videos of matlab and please make Python tutorials also, you'ld make them easy to understand 🙏🏻🙏🏻
@eng1897
@eng1897 3 жыл бұрын
thank you so much
@anjanbhattacharjeesir
@anjanbhattacharjeesir Жыл бұрын
Thanks sir
@Matt-jh5zt
@Matt-jh5zt 4 жыл бұрын
The inflections of your voice make me feel like a child.
@radiamoon2395
@radiamoon2395 3 жыл бұрын
thank you
@David-tr2ul
@David-tr2ul 3 жыл бұрын
thanks for doing my professors job. come apply at purdue and let them know they can let their intro engr profs go
@vivekraj2814
@vivekraj2814 3 жыл бұрын
Thanks
@emieelreegis4505
@emieelreegis4505 3 жыл бұрын
thx frome suadi
@queengagyeltshen
@queengagyeltshen 3 жыл бұрын
How to add a value to a diagonal element, say for a 9x9 matrix starting at 4th row and column and moving to next level (i.e. 5th, 6th till 9th) after every iteration. After the computation is carried out with the value added to the diagonal element and moving to next element the value added to earlier row and column should be rid off moving to next iteration.
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 жыл бұрын
Sounds like you are looking for more about manipulating arrays and for loops. I'm still posting more videos related to this, but here's something that you may find relevant: kzbin.info/www/bejne/qGXdiYSiqst7oc0
@ofeliagomez6027
@ofeliagomez6027 3 жыл бұрын
could you do a video on plots and tables?
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
Yes, in fact, plots are up next on my to do list. Should have something for you soon.
@qubasolish5367
@qubasolish5367 3 жыл бұрын
I crush of you🙈
@Engineerminder
@Engineerminder 4 жыл бұрын
helped in applied heat transfer haha
@minutechips9414
@minutechips9414 4 жыл бұрын
play the video at 1.5 speed and he sounds less like a robot
@rafap.6862
@rafap.6862 4 жыл бұрын
too basic, lost 12 mins of my life. What about when dealing with intervals ,assigning other values to the result depending on the original value... etc
@toastedsniper9248
@toastedsniper9248 Жыл бұрын
Amazing explanation. You remind me of the character from prison break named Michael Scofield lmao, thanks for uploading!
@yaddyb2853
@yaddyb2853 3 жыл бұрын
Thank you sir
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 40 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 29 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 45 МЛН
Control Flow in Python - If Elif Else Statements
16:08
Programming with Mosh
Рет қаралды 286 М.
MATLAB Tutorial | Logical Operators: AND, OR, NOT with Examples
12:50
Spartan Professor
Рет қаралды 2,9 М.
Conditional Statements in MATLAB
16:31
Electro DeCODE
Рет қаралды 10 М.
"While Loops" and "For Loops" in MATLAB
9:24
James Smith
Рет қаралды 20 М.
If, Else, and Elseif Matlab Statements
11:42
SnugglyHappyMathTime
Рет қаралды 152 М.
for and while Loops
6:49
Neso Academy
Рет қаралды 709 М.
Debugging 101: Replace print() with icecream ic()
12:36
NeuralNine
Рет қаралды 359 М.
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 40 МЛН