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

Поділитися
Вставка
  • Опубліковано 14 жов 2018
  • 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 роки тому +6

    Thank you so much!! Perfect explanation! I was having problems with these statements because I was doing it backwards. Great video.

  • @desmondselasi8036
    @desmondselasi8036 4 роки тому +5

    You have given me a better and vivid explanation. Thanks Sir

  • @EngineeringwithDrKelseyJoy
    @EngineeringwithDrKelseyJoy 2 роки тому +4

    Great videos! I like using the grade example for a simple if statement too!

  • @melmeja
    @melmeja Рік тому +1

    I subscribed you. You are the one only lecturer for best MATLAB tutorial. Thank You!

  • @aminshefai5934
    @aminshefai5934 4 роки тому +1

    Thanks for the vivid explanation. Learned some essential things in Matlab.

  • @user-uy3hd2mv9t
    @user-uy3hd2mv9t Рік тому

    Thank you Dr. David for the excellent explanation!!

  • @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.

  • @athena9357
    @athena9357 4 роки тому +9

    You explained so well, and I final get it, thank you!

  • @MinhNguyen-qc9dg
    @MinhNguyen-qc9dg 3 роки тому

    Thank you David for excellent explanation.

  • @DrPCJha
    @DrPCJha 4 роки тому +1

    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!

  • @aartijoshi2540
    @aartijoshi2540 3 роки тому

    very easy explaination ... it helped me a lot.. thank you.

  • @wiseguy724
    @wiseguy724 4 роки тому +1

    Thank you very much for this.

  • @oteniarayusuf5145
    @oteniarayusuf5145 4 роки тому

    Many thanks to you..You did perfectly well

  • @mehmetberke9872
    @mehmetberke9872 3 роки тому

    Thanks a lot from Turkey.

  • @ibadkhan1092
    @ibadkhan1092 4 роки тому +1

    thanks sir it is perfect explanation

  • @learnnewfoodworldwide8806
    @learnnewfoodworldwide8806 3 роки тому +2

    David do more videos of matlab and please make Python tutorials also, you'ld make them easy to understand 🙏🏻🙏🏻

  • @olooalfredo
    @olooalfredo 3 роки тому

    Amazing!

  • @missarchanatobria2868
    @missarchanatobria2868 3 роки тому

    Well explained.

  • @sanjeevkumar-vg6go
    @sanjeevkumar-vg6go 4 роки тому

    thanks a lot from INDIA

  • @Matt-jh5zt
    @Matt-jh5zt 4 роки тому +6

    The inflections of your voice make me feel like a child.

  • @abrahamebyfugui326
    @abrahamebyfugui326 3 роки тому

    Well explained

  • @GlorytoourGod_Jehovah
    @GlorytoourGod_Jehovah 2 роки тому

    thanku sir
    your video is really helpful

  • @niramu9949
    @niramu9949 4 роки тому

    Thank you very much sir

  • @anjanbhattacharjeesir
    @anjanbhattacharjeesir Рік тому

    Thanks sir

  • @eng1897
    @eng1897 3 роки тому

    thank you so much

  • @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

  • @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: ua-cam.com/video/r4zXQlufHkk/v-deo.html

  • @ofeliagomez6027
    @ofeliagomez6027 3 роки тому +1

    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.

  • @emieelreegis4505
    @emieelreegis4505 3 роки тому

    thx frome suadi

  • @Engineerminder
    @Engineerminder 4 роки тому

    helped in applied heat transfer haha

  • @qubasolish5367
    @qubasolish5367 3 роки тому

    I crush of you🙈

  • @minutechips9414
    @minutechips9414 4 роки тому +1

    play the video at 1.5 speed and he sounds less like a robot

  • @rafap.6862
    @rafap.6862 4 роки тому +3

    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