Загрузка страницы

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

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: https://youtu.be/okNnrFwfA_Q

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: https://youtu.be/C2zpicOqfJo

Part 4 introduces the concept of combing loops and logic by nesting an if statement inside of a while loop. Link to Part 4: https://youtu.be/urIPcmpSmFU

The background music in the intro and outro was written and produced by Michael J Calamas for the exclusive use of David Calamas.

Видео MATLAB for Engineers - Introduction to while Loops (Part 1 of 4): The Basics канала Spartan Professor
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
16 января 2021 г. 0:57:08
00:07:34
Яндекс.Метрика