MATLAB for Engineers - Introduction to while Loops (Part 1 of 4): The Basics

  Рет қаралды 36,505

Spartan Professor

Spartan Professor

Күн бұрын

In this video, I introduce you to the while loop. A while loop is a loop structure for repeating a calculation until a specified condition is met. While loops are present in most programming languages and environments. First, I'll introduce you to the structure of a while loop. Then, I'll demonstrate the concept of a loop pass using a flow chart. Finally, I'll walk you through the implementation of a basic while loop in MATLAB.
This is Part 1 of a 4 Part Series on while Loops.
Part 2 focuses on updating the value of a scalar variable and using a counter variable inside of a while loop. To demonstrate these concepts, we take a look at how long it would take to double an initial account balance based on a specified annual rate of return. Link to Part 2: • MATLAB for Engineers -...
Part 3 introduces the concept of storing the value of a loop variable inside of an array using an index variable. Link to Part 3: • MATLAB for Engineers -...
Part 4 introduces the concept of combing loops and logic by nesting an if statement inside of a while loop. Link to Part 4: • MATLAB for Engineers -...
The background music in the intro and outro was written and produced by Michael J Calamas for the exclusive use of David Calamas.

Пікірлер: 35
@fabriziochacaltana2082
@fabriziochacaltana2082 3 жыл бұрын
i learned more from this video than from my uni lectures
@Kni90270
@Kni90270 Ай бұрын
Some university lecturers are not explaining in this clarity. Thank you ☺️
@ahmedabdulhafith1810
@ahmedabdulhafith1810 2 жыл бұрын
I have watched so many videos about the basics of the Matlab programming language, and I can say your explanation is the best I have found. Hope you do more videos about programming.
@georgiosstavrinos3023
@georgiosstavrinos3023 3 жыл бұрын
This is the best explanation I've found on while loops. Thank you!!
@rajmehta3928
@rajmehta3928 3 жыл бұрын
Please continue these videos. they are of great help.
@romanschlichting8873
@romanschlichting8873 2 жыл бұрын
you are one of the heroes of youtube pulling me through engineering, ever since covid and online classes especially been so grateful for the great content to learn from thank you so much for the help!
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
Glad to help!
@abkhokhar6515
@abkhokhar6515 Жыл бұрын
Great work. We look forward to watching your next videos.
@dinosaur22815
@dinosaur22815 2 жыл бұрын
YOU MAKE IT SO SIMPLE TO UNDERSTAND. THANK YOU VERY MUCH!!!
@learnnewfoodworldwide8806
@learnnewfoodworldwide8806 3 жыл бұрын
David do more videos of matlab and please make Python tutorials also, you'ld make them easy to understand 🙏🏻🙏🏻
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 жыл бұрын
Love the flowcharts you include!
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
Thanks! Hard to understand otherwise IMO
@gizemkacann
@gizemkacann 5 ай бұрын
many thankss for wonderfull explanation!!
@genuinelifematters8819
@genuinelifematters8819 3 жыл бұрын
This is awesome prof.
@omkarkudalkar4621
@omkarkudalkar4621 3 жыл бұрын
keep going bro love from INDIA
@sachindrad.a836
@sachindrad.a836 2 жыл бұрын
Great video, Thanks
@omarel-ghezawi6466
@omarel-ghezawi6466 Жыл бұрын
Excellent!
@krupakhandor7103
@krupakhandor7103 3 жыл бұрын
Your vedio is too good to understand in simple way 🌸🌸
@masjos7103
@masjos7103 3 жыл бұрын
You have the best explanations!
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
Wow, thanks!
@ahshamuyarira8357
@ahshamuyarira8357 3 жыл бұрын
the video is awesome man.
@swaminipatel3811
@swaminipatel3811 Жыл бұрын
you are magic, i learned so much
@lord_kaitu
@lord_kaitu Жыл бұрын
Bless you … clear understanding
@karidanayam
@karidanayam Жыл бұрын
thank you, the clearest matlab video on youtube
@SpartanProfessor
@SpartanProfessor Жыл бұрын
Glad it was helpful!
@eshalshoaib5923
@eshalshoaib5923 6 ай бұрын
Amazing video! Thank you! Just subscribed!
@SpartanProfessor
@SpartanProfessor 4 ай бұрын
Awesome! Thank you!
@jacobhouston1655
@jacobhouston1655 3 жыл бұрын
Dude, your way of explaining this using a flowchart made it click for me. Make more videos explaining using flowchart please. How about a video for If, then statements, please?
@rajbahadursingh3706
@rajbahadursingh3706 11 ай бұрын
EXELLENT
@mokarrommolla5820
@mokarrommolla5820 3 жыл бұрын
I like you all videos.i am just wondering are you gonna make a video that can show us how to animate dynamics problem in matlab ? thank you so much
@norihambujang4903
@norihambujang4903 2 жыл бұрын
i have one question, after we get all the value x=5,x=14, x=41....how to write the command so that we can add all the x values...tq in advance prof
@priyankanegi8414
@priyankanegi8414 2 жыл бұрын
I want to predict the pollutant concentration from distance ,x (0 to 60,000m) at every 200 m. what statement will be used?
@priyankanegi8414
@priyankanegi8414 2 жыл бұрын
spartan professor, please help me !
@josepharmstrong6852
@josepharmstrong6852 2 жыл бұрын
needed to play at 1.5x speed dude you talk so slow
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
A large percentage of the audience is international so I try to enunciate clearly and at a slower cadence. Nothing wrong with 1.5x.
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 15 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 10 МЛН
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 16 МЛН
MATLAB for Engineers - Conditional Statements if, else, and elseif
12:52
Spartan Professor
Рет қаралды 75 М.
For Loops in R
11:34
Richard Webster
Рет қаралды 208 М.
"While Loops" and "For Loops" in MATLAB
9:24
James Smith
Рет қаралды 20 М.
MATLAB for Engineers - Preallocation of Variables: What, Why, and How
17:01
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 321 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 769 М.
FOR loops in MATLAB: Nested FOR loops
7:32
RobertTalbertPhD
Рет қаралды 335 М.