MATLAB for Engineers - Introduction to for Loops (Part 4 of 4): Combining Loops and Logic

preview_player
Показать описание
A for loop is a loop structure for repeating a calculation a pre-defined number of times. In this video, we will combine loops and logic by nesting the conditional statements if, elseif, and else inside of a for loop to generate a plot. First, I'll introduce you to the problem. Then, we'll walk through a flow chart to demonstrate how the conditional statements dictate the path that the program takes. Finally, we'll solve the problem in the MATLAB programming environment.

If you are unfamiliar with for loops and how they can be used to perform scalar operations, I'd recommend watching Parts 1 and 2 of the series. If you are unfamiliar with working with arrays or array indexing inside of a for loop then I would recommend checking out Part 3. Links to Parts 1 through 3 can be found below.

The background music in the intro and outro was written and produced by Michael J Calamas for the exclusive use of David Calamas.
Рекомендации по теме
Комментарии
Автор

JUST KEEP POSTING SUCH ELEGANT VEDIOS, I GUARANTEE TO BE SUCCESSFUL CHANNEL

jafarmajali
Автор

omg how good are you professor so clean to understand! Wow so appreciated it

Scupato
Автор

Another neat and clean video! love to see you making videos on image analysis.

muhammadchoudhry
Автор

very good explanation, getting confidence sir after seeing your videos

vinjamuriaditya
Автор

Thank you so much for making these videos! You do an amazing job! Please keep it up! Liked and subscribed!

justinbarr
Автор

Can you share exercises about for loop? I checked many websites to solve exercises but didn't find one. If you can share, I will so happy. Thank you for your good explanation. I hope, you will better in the future.

omerbozkurt
Автор

Sir can you suggest a book for practicing lot more real-time examples in MATLAB for in-depth knowledge and understanding in such a way that each example is explained clearly

CUDAYARANGANAIKPrameela
Автор

thank you very much for these videos pls keep it up

MOMO-gtfy
Автор

Hi loove your videos and explination, but i'm windering, how come you didnt insilize the array, in this example x = [-10, how did matlab notice it was an array??

moradalmdar
welcome to shbcf.ru