FOR loops in MATLAB: Nested FOR loops

  Рет қаралды 335,555

RobertTalbertPhD

RobertTalbertPhD

13 жыл бұрын

This screencasts gives an example of a nested FOR loop in a MATLAB program and how to create it based on a written algorithm. Also introduces the SIZE and MOD commands as a side trip.

Пікірлер: 51
@rockyroad179
@rockyroad179 3 жыл бұрын
Thank you, sir. This makes much more sense the way you've explained it!!
@rohitsainiencom
@rohitsainiencom 4 жыл бұрын
i was struggling to write one function on matix for an hour but your explaination made my day.. thanks a lot!!
@kush.5904
@kush.5904 8 жыл бұрын
your tutorial videos are really helpful and precise,keep up the good work!!
@ahmedshaaban3813
@ahmedshaaban3813 4 жыл бұрын
Very comprehensive and helpful, sir. Thank You.
@romisana
@romisana 11 жыл бұрын
Very well presented! I wish it were explained this clearly when I was learning it!
@NegosyoManila
@NegosyoManila 3 жыл бұрын
Thanks to this I was able to try out some refresher, I got the program solved before him posting the solution. Thanks!
@lumpenhund2772
@lumpenhund2772 3 жыл бұрын
Quick and clear. Good one!
@jerrodnewton722
@jerrodnewton722 4 жыл бұрын
I didn't know Bird Person taught MATLAB tutorials
@baotran7626
@baotran7626 3 жыл бұрын
Me too
@berkeozsever851
@berkeozsever851 3 жыл бұрын
LMAOOOO
@SohilShah_Melodyman
@SohilShah_Melodyman 7 жыл бұрын
Gr8! Was very helpful!
@insajderpapaj4650
@insajderpapaj4650 10 жыл бұрын
I am an absolute beginner in programming and I find this video very useful! Thank you very much!
@wobblemanjohnsonheisenberg
@wobblemanjohnsonheisenberg 4 жыл бұрын
Great video!
@6996skull
@6996skull 9 жыл бұрын
thank you so much
@efox1991
@efox1991 7 жыл бұрын
Thank you and +10pts for sounding like an older Sheldon from Big Bang Theory
@jenatawad8553
@jenatawad8553 11 жыл бұрын
wonderful , great job :-)
@Keevon7
@Keevon7 13 жыл бұрын
Thank you!
@AlexanderMaltagliati
@AlexanderMaltagliati 9 жыл бұрын
I found this very helpful, but I felt that there were a few commands that were used but not fully explained: "fprintf", "%0.0f", and ". " I do not know where these came from and what they do (aside from if they are used exactly the same as in this case). Thanks!
@JanviHiren1684
@JanviHiren1684 8 жыл бұрын
MOD function is almost like rem Function which also calculates remainder I guess.
@StrangeParticl
@StrangeParticl 10 жыл бұрын
that was a great lesson from you and I admired you way of explaining the example, I am welling to have a chat with you about somthing that I need the help in it. Welling to have you answer soon Thank you in advance Z
@rizwanrifaqat1399
@rizwanrifaqat1399 6 жыл бұрын
is it possible to save the resulting variables during the loop operation. for example for a loop from 1:5, i want to save all the generated variables during the iteration cycle under a different name. can it be done?
@karinapillay874
@karinapillay874 4 жыл бұрын
Will a nested for loop like this work the same for a string array? I dont know the syntax for the counter for a string array to go through each column then row
@benh5351
@benh5351 7 жыл бұрын
Just curious how to use MATLAB to find the values of a symbol? Giving a+c=30 and 2
@fgularte
@fgularte 12 жыл бұрын
nice!
@enashameed471
@enashameed471 3 жыл бұрын
Thanks
@muhammadahdanfawwaznurkhol9570
@muhammadahdanfawwaznurkhol9570 6 жыл бұрын
Hi Sir, can you create Matlab program for 2 input and 2 output using if else statement? Thank you very much
@Indian2020_Jai_Jai
@Indian2020_Jai_Jai 11 жыл бұрын
Sir, please tell me about loops that are used to take two inputs simultaneously and computing it: example- fori=1:5 forj=1:5 fprintf(' take length 1:'); fprintf(' take length 2:') %other computations end end
@zachariahprince08
@zachariahprince08 11 жыл бұрын
How can a user enter an array of his own choice??What is the command for that? please answer
@felisesilva6891
@felisesilva6891 9 жыл бұрын
what is the difference between using MOD and REM commands?
@shyennebahar
@shyennebahar 8 жыл бұрын
Shouldn't num_rows=size(A,2)?? Because the output of the function gives you the number of rows.
@getnetgidelew1532
@getnetgidelew1532 11 жыл бұрын
cool !
@olgerpapa2145
@olgerpapa2145 8 жыл бұрын
Hello, i have wind speed data(per second) and i need a loop to calculate the average every 1 minute(60sec). 5.270.341rows 1column. Can you help me?
@MrAnzu22
@MrAnzu22 12 жыл бұрын
supercool,you are my hero...btw is it macbook or mac book pro..???
@Mastela00
@Mastela00 11 жыл бұрын
neat
@madeleinefoster7762
@madeleinefoster7762 8 жыл бұрын
what does mod do??
@Irfankhan-kh5ou
@Irfankhan-kh5ou 4 жыл бұрын
hey @ RobertTalbertPhD i have got some issue in the matlb code that i want to run , it is related to my masters degree research. i just have to write a program for orientation of a mirror and the value of it changes for different days of the year . if you would help me correct my program i will be much indebted .
@gustidermawan6549
@gustidermawan6549 5 жыл бұрын
hello sir, can you help me to complete my thesis?
@zachgreaves9749
@zachgreaves9749 11 жыл бұрын
say within a for loop defined as, i=1:100 if ..... elseif..... while..... If I have a condition in the while loop that terminates the current history it is on and goes to the next history within the for loop... How would I do that? Say the condition is met in i=1, I want to terminate that loop if the neutron is lost and start, i=2. Please help...
@StealthShadowFox
@StealthShadowFox 7 жыл бұрын
Can you please show how to solve a matrix of a 5x3 and have it in increase in the order of small to large. Example [ 1 2 5 15 18 23 ] Thank you.
@owi6317
@owi6317 4 жыл бұрын
A=input('Enter an array:') num_rows=size(A,1); num_cols=size(A,2); for i=1:1:num_rows; for j=1:1:num_cols if mod (A(i,j),2)==0 fprintf('The entry %0.0f is even, A(i,j)') else fprintf('The entry %0.0f is odd, A(i,j)') endif endfor endfor
@seggetauli6644
@seggetauli6644 5 жыл бұрын
Molto interessante, suggerisco anche il corso grautito di "Corsi Consulenze NPR", kzbin.info/www/bejne/pJSUq55meaZ9pJI
@ruhinabagwan5179
@ruhinabagwan5179 5 жыл бұрын
Zara slow bol re baba
@112rapture
@112rapture 7 жыл бұрын
Thank you for not having an accent
@11792874
@11792874 12 жыл бұрын
good job but speaking slower would make it easier to follow
@antonelladimatteo7908
@antonelladimatteo7908 3 жыл бұрын
cacca cacca cacca
@asifalrazi4107
@asifalrazi4107 4 жыл бұрын
u r too fast, doesnt freaking help
MATLAB for Engineers - Conditional Statements if, else, and elseif
12:52
Spartan Professor
Рет қаралды 75 М.
Nested Loop in MATLAB | Easy Example to Understand Nested Loops (4K UHD)
10:52
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Array manipulation in MATLAB
9:55
RobertTalbertPhD
Рет қаралды 225 М.
Looping structures in MATLAB: WHILE loops
8:03
RobertTalbertPhD
Рет қаралды 58 М.
Nested For Loop In Java Tutorial #24
10:02
Alex Lee
Рет қаралды 266 М.
MATLAB Function Plotting Basics
9:21
RobertTalbertPhD
Рет қаралды 520 М.
MATLAB - Loops for Vectors and Matrices
6:11
Radhakrishna Dasari
Рет қаралды 16 М.
For Loops in R
11:34
Richard Webster
Рет қаралды 208 М.
Python Programming Series (Loops 4): Nested loops
14:45
Left Peel
Рет қаралды 164 М.
Loops in MATLAB | While Loop and For Loop in MATLAB
23:47
Electro DeCODE
Рет қаралды 18 М.
Function M-Files in MATLAB
9:11
RobertTalbertPhD
Рет қаралды 247 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,7 МЛН