MATLAB for Engineers - Introduction to while Loops (Part 3 of 4): Indexing and Storage in Arrays

preview_player
Показать описание
A while loop is a loop structure for repeating a calculation when the number of loop passes is not known in advance. In this video, we'll use a while loop to determine how long it will take to double an initial account balance based on a specified annual rate of return. Unlike in Part 2 (link below), we'll store the account balance inside of an array using an index variable. First, we'll take a look at the problem statement. Then, I'll walk you through a flow chart to visualize how to store the end-of-year balance in a specific element in an array through the use of an index variable. Finally, we'll solve the problem in MATLAB. While loops are present in most programming languages and environments.

This is Part 3 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.
Рекомендации по теме
Комментарии
Автор

PLEAR SIR UPLOAD NEXT WHILE LOOP VIDEO 4/4, it's really helpful sir

kapilsahu
Автор

Thanks for the such a good explanation!!

danielsoria
Автор

I don't understand this i array concept. Need a visual to explain that, please.

jacobhouston
Автор

I suggest you throw an example to do at the end with the answer at the very end

spyroskast
Автор

can you explain how to make for loop into a while loop

Paull
Автор

Thank u so much, this lesson is great!

thaibinhnguyenthi
Автор

PLEAR SIR UPLOAD NEXT WHILE LOOP VIDEO

kapilsahu
visit shbcf.ru