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

  Рет қаралды 82,590

Spartan Professor

Spartan Professor

Күн бұрын

In this video, I introduce you to the for loop. A for loop is a loop structure for repeating a calculation a pre-defined number of times. For loops are present in most programming languages and environments. First, I'll introduce you to the structure of a for loop. Then, I'll demonstrate the concept of a loop pass through an example problem. Finally, I'll walk you through the implementation of a for loop in MATLAB.
This is Part 1 of a 4 Part Series on for Loops.
Part 2 focuses on updating the value of a variable during each loop pass. Link to Part 2: • MATLAB for Engineers -...
Part 3 introduces array indexing, element-by-element operations, and storage of data inside of an array. Link to Part 3: • MATLAB for Engineers -...
Part 4 will introduce combining loops and logic by nesting the conditional statements if, elseif, and else inside of a 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.

Пікірлер: 31
@Jayduckman
@Jayduckman 3 ай бұрын
This is the best video I’ve ever seen for-loop that can apply to real world. I’m an engineer sometimes struggle with nested loop and got my confused
@jadeherman7493
@jadeherman7493 2 жыл бұрын
This explained it to me better than my 3 hour lecture . Thank you Legend
@nettlex
@nettlex 3 ай бұрын
We also have 3 hours which teaches nothing. I wonder if University was meant to make students learn everything by themselves?
@zdvxgf
@zdvxgf Ай бұрын
@@nettlex I don't mind having to learn things by myself but the thing is, we're paying uni thousands of dollars so they should just do the teachings properly themselves rather than "make us meant to learn by ourselves" when in fact we don't really learn by ourselves, we just learn to resort to other material learning resources like youtube, which basically just implies we did not learn things by ourselves rather with the aid of people on youtube. So the people on youtube is more deserving with our fee.
@nettlex
@nettlex Ай бұрын
@@zdvxgf yeah I was being sarcastic and I have scholarship, but even if you don't pay anyrhing you lose your time. And tbh, university is meant to teach average people. 70 years ago it was where most brilliant people shared information. Now It says: come to school that time, go to this class, take this exam and use this paper to get a job.
@onyiboemmanuel6060
@onyiboemmanuel6060 3 жыл бұрын
What amazed me is how you knew my problems and solve them within minutes. thanks a lot you are saving people in 2020
@wolfwrentruther
@wolfwrentruther 3 жыл бұрын
You saved my life, I've been fine with everything but loops, and it's killing my grade.
@cheggmi3637
@cheggmi3637 2 жыл бұрын
Very intelligent explanation. I just understood the whole thing in one explanation
@phomarconi
@phomarconi 3 жыл бұрын
Many thanks! brilliant job! Didactically explained.
@joeyroberts9443
@joeyroberts9443 8 ай бұрын
UNDER-RATED CHANNEL!!! TYSM
@fabriciogalvan90
@fabriciogalvan90 3 жыл бұрын
You showed exactly what I was looking for. Thank you!
@stephenoni2019
@stephenoni2019 2 жыл бұрын
great intro! thank you for taking the time to do this!
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
Any time!
@haxor-lt5pn
@haxor-lt5pn Жыл бұрын
You are a life saver spartan professor!!!
@mustafakhan5821
@mustafakhan5821 2 жыл бұрын
You are a fantastic teacher
@enashameed471
@enashameed471 3 жыл бұрын
Thanks جزاك الله كل خيرا
@Ohohhohoh
@Ohohhohoh Жыл бұрын
I like the tone of your voice, it keeps me focused!
@shadenroro2353
@shadenroro2353 2 жыл бұрын
Great video thanks!!!
@naseeruddin3171
@naseeruddin3171 3 жыл бұрын
very nice video really impressive
@muneebhasan5464
@muneebhasan5464 3 жыл бұрын
how can someone like YOU deliver so smoothly incredible
@youcefbacha623
@youcefbacha623 Жыл бұрын
THANK YOU
@ragnarlothbrok6324
@ragnarlothbrok6324 2 жыл бұрын
Thank you so much habibi. I love and appreciate you.
@SpartanProfessor
@SpartanProfessor 2 жыл бұрын
Thank you too
@Rainstorm121
@Rainstorm121 3 жыл бұрын
Thanks Sir. should i use for looks to plot 3 subplots on one axis?
@mollysmith2713
@mollysmith2713 3 жыл бұрын
helpful graphic
@rasedquazi4952
@rasedquazi4952 Жыл бұрын
Hello Sir, can you please make a tutorial on steady state of matlab with most simple way?
@verenafechter4656
@verenafechter4656 3 жыл бұрын
please make more videos about matlab :)
@solehead90
@solehead90 2 жыл бұрын
What if 4 was not defined? ie if you wanted a variable to be raised to [n] times?
@wanassaben8269
@wanassaben8269 Жыл бұрын
Thank you 🇩🇿😍
@beldewpie3174
@beldewpie3174 2 жыл бұрын
Bruh take care of ur eyes u look sleepy and stressed
MATLAB for Engineers - Conditional Statements if, else, and elseif
12:52
Spartan Professor
Рет қаралды 76 М.
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 56 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
Introduction to For Loops in Python (Python Tutorial #5)
10:22
CS Dojo
Рет қаралды 1,6 МЛН
"While Loops" and "For Loops" in MATLAB
9:24
James Smith
Рет қаралды 20 М.
Basics of Programming using MATLAB
20:01
MATLAB Programming for Numerical Computation
Рет қаралды 998 М.