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

preview_player
Показать описание
A for loop is a loop structure for repeating a calculation a pre-defined number of times. In this video, we'll use a for loop to store data inside of an array. First, I'll introduce you to how MATLAB handles arrays and array indexing. Then, I'll take you through a flow chart of an example problem to visualize how an array can be updated during each loop pass. Finally, I'll walk you through the implementation of a for loop in MATLAB with array indexing and storage in an array. If you are unfamiliar with for loops, I'd recommend watching Parts 1 and 2 of the series (links below).

This is Part 3 of a 4 Part Series on for Loops.

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

Thank you for your video, I am using them to complement my practice with Matlab. Sometimes my book is difficult to follow but with your videos I can understand better the concepts and solve the exercises of my book.

angie
Автор

Thank you so very much. I appreciate these lectures.

valeriereid
Автор

Really nice and helpful videos! Greetings from Greece!

ΙάσωναςΦιλιππίδης
Автор

Great Explanation, you are able to save my dream to be graduated

ravindrakhakural
Автор

Good lecture. I understand clearly the objective of this tutorial. I yearn for more. thanks

kapisotieno
Автор

great to see you again bro we will be rich soon :) loves your videos

AdityaSingh-kwbi
Автор

very good lecture, please add more and more videos

katd
Автор

what if I wrote the following instead?
for x=0:2:8;
y=x^2
end
is it the same? Thanks

Fxm-rv
Автор

How can we detect a sign change in a vector using for loop

hz
Автор

can u suggest on handling more than two indexes or variables in matlab. let's, for example, assume that Y is function of three variable, x, z, t and we want to have values of y as all variables change and store results at point of my interest. for example store values of y as t varies and x and z are kept at specific values.

aklilug
Автор

Quick q, if you want to just use one value of y, say when i = 3 for some other calculation, how do you do that. Because if I write y in the conmand window it just gives me the latest y value (when i is 5)?? Would really appreciate a quick reply thanks

eedeatlikkle
Автор

why'd you do it this way and not like the way you did in previous videos? why did you introduce "i" abruptly?

stephenoni
Автор

This y(i), the i character is giving me SUCH A HARD TIME watching your vidoes. Everything is smooth until that (i) comes up. Could yo uplease explain this whole (i) concept in a video by itlsef? Very frustrating. :(

jacobhouston
Автор

I despise this (i). I don't understand it.

jacobhouston
visit shbcf.ru