MATLAB for Engineers - Introduction to while Loops (Part 2 of 4): Updating Variables and Counters

preview_player
Показать описание
In this video, I introduce you to updating the value of a scalar variable and using a counter variable inside of a while loop. To explain this concept, we will take a look at an example problem where we determine how long it will take to double an initial account balance based on a specified annual rate of return. First, we'll take a look at the problem statement. Then, I'll walk you through a flow chart of the problem to visualize the use of a counter variable. Finally, we'll solve the problem in MATLAB.

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.

This is Part 2 of a 4 Part Series on while Loops.

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

Understood this concept in 2 min compared to how my professor teaches. Thank you

nathanturner
Автор

Love the flowchart and code visual highlighting the process! Very cool!

EngineeringwithDrKelseyJoy
Автор

hello, I'm from Indonesia. and your channel is really helpful for finding a detailed explanation of Matlab. your explanation is also easy to understand, I hope you can upload again some videos related to Matlab. thank you, professor,

dwikyabdullah
Автор

Outstanding explanation. Very easy to understand. Thanks a lot

geraldfokumla
Автор

Your videos are fantastic and easy to understand. I am watching it a day before my exam 😂❤

humaismuhammad
Автор

Great explanation, Thank you so much.

sheikhaalfuqaei
Автор

Thanks for your comprehensive style of delivering lectures. Even the dumbest student can understand your lectures. I am a PhD student at ITB Bandung Indonesia and am trying to implement my algorithm using recursive least squares. Could you please make a video on this subject with practical example. Most videos I have seen doesn't give comprehensive explanation and examples.

solomononuchefaruna
Автор

this is so helpful thank you very much

peaceandlove-hb
Автор

hey, amazing videos! I have a somewhat unrelated question. say I wanted the balance to display as 20122 dollars rather than in scientific notation. how would I do that? Also, I have some output in the format "0.37154A(5.438715e-01" what does that represent?

ElanaLottner
Автор

Great Explanation Professor, Lets buy some beers :)

ravindrakhakural
Автор

I know it is a silly question but why have you add 1 in the statements??

kevaldevkar
Автор

Good explanation just stop being such a robot 😭

samterrell