Тёмный

MATLAB Tutorial 3 - FOR Loops and Plots 

Numerical Methods ChE McMaster
Подписаться 3,4 тыс.
Просмотров 111 тыс.
50% 1

An introduction to basic "for" loop logic and some tips to make clear, visually appealing plots easily.

Опубликовано:

 

26 авг 2013

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@oxord1111
@oxord1111 Год назад
I know you won’t believe it but your videos is the most helpful to this day. Can’t believe this 9 year old video does a better job than the most recent videos lol
@getcraftywithalex9072
@getcraftywithalex9072 6 лет назад
This is by far the best youtube channel I have found for learning MATLAB! My teacher, as of now, does not "teach" anything and I have been very frustrated and found myself falling behind. Finding these have helped me catch back up with where everyone should be in class now! Thank you so much for such a great teaching style which I am able to fully understand and benefit from! These are a life saver! Please, keep it up! :)
@sheikhfarhanabinteahmed4340
@sheikhfarhanabinteahmed4340 9 лет назад
These videos are the most understandable ones among all the matlab video tutorials that i have seen uptil now! please upload more videos. the teaching style is very effective.
@brennaryan4114
@brennaryan4114 9 лет назад
Studying for finals and this was SOOO HELPFUL!! THANK YOU!!
@adel7854
@adel7854 6 лет назад
Thank you so much for your simplified explanation. I learned different things from this lesson.
@wareefm.s.3655
@wareefm.s.3655 8 лет назад
that was AMAZING, thank you a lot for these tutorials
@drumcoversbydick
@drumcoversbydick 8 лет назад
Good video - helpful and easy to understand. Thanks!
@emperoy8
@emperoy8 8 лет назад
Amazing Job. Well done
@sandipvasani6204
@sandipvasani6204 8 лет назад
Really Very Informative..........You have done Great Job.
@parakit11
@parakit11 7 лет назад
Thank you so so so much. You helped me understand for loop.
@md.imranhossain7658
@md.imranhossain7658 6 лет назад
Thank you, very helpful video.
@tilkesh
@tilkesh 2 года назад
Thank you very much. Great help for us.
@133wavi
@133wavi 10 лет назад
very good tutorial. thank you so much. it is really very helpful
@sana181019811
@sana181019811 5 лет назад
i like it soo much to me ur videos are very productive and effective
@luizgonzaga750
@luizgonzaga750 10 лет назад
Very good!
@robosergTV
@robosergTV 8 лет назад
very very helpful, thx!
@gencaypolat8901
@gencaypolat8901 4 года назад
You are just amazing!
@beoptimistic5853
@beoptimistic5853 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vFDMaHQ4kW8.html 💐
@alizar606
@alizar606 3 года назад
very interesting and nice explaining . thanks brother
@beoptimistic5853
@beoptimistic5853 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vFDMaHQ4kW8.html 💐
@barbaracarnauba1507
@barbaracarnauba1507 4 года назад
Very helpful!!! Thank you!
@beoptimistic5853
@beoptimistic5853 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vFDMaHQ4kW8.html 💐
@rociogonzalezmeza2252
@rociogonzalezmeza2252 10 лет назад
thanks! now it seems easy (:
@shazzadhasan4067
@shazzadhasan4067 6 лет назад
amazing. thanks a lot
@mechanicalfreaks5958
@mechanicalfreaks5958 6 лет назад
OMG you are a life saver dude
@mechanicalfreaks5958
@mechanicalfreaks5958 6 лет назад
amazing tutorials
@dantearturorodriguezcamach2550
+Numerical Methods ChE McMaster I just wanted to let you know that I have had a very hard time these last years trying to learn matlab basics and your videos (which I just recently discovered) have really helped me and inspired me to keep learning matlab. I really enjoy your videos! Thank you so much!!!!
@zinmot5457
@zinmot5457 7 лет назад
Thank you so much
@TheLeykis101
@TheLeykis101 7 лет назад
NICE!
@Peter_1986
@Peter_1986 9 лет назад
You have a beautiful voice.
@BrandonSLockey
@BrandonSLockey 3 года назад
sooothing
@SuperFloyd187
@SuperFloyd187 9 лет назад
Thank you
@SANzer0
@SANzer0 10 лет назад
thanks soooo much
@ruthwickreddy8568
@ruthwickreddy8568 6 лет назад
bro thanks a lot...............
@alizar606
@alizar606 3 года назад
please keep it up .
@JKS323
@JKS323 6 лет назад
I don't know why but the second method makes more sense to me.
@linemob1
@linemob1 10 лет назад
very good
@kishandey7322
@kishandey7322 6 лет назад
thanks for the nice explanation.. also can u please provide a tutorial video with an equation of the form where equation is dependent on two variables, say like velocity is dependent on both position 'x' and time 't' and both of which are in summation form??
@samuelwamwere4867
@samuelwamwere4867 2 года назад
Thanks
@marcusmasdammer5905
@marcusmasdammer5905 10 лет назад
How would I create a loop that would plot a graph with an unknown max time, but once a value becomes 0 the plotting of the graph stops. Thanks.
@AirKhan11
@AirKhan11 9 лет назад
so in my class right now I have to plot the eigenvalues on a complex plane for varying values of k in my A matrix which is: c = 2; b = -.1; A = [0 1; -c-k1 -b-k2]; eig(A); I created a for loop: k1 = 0:0.01:10; for i = 1:length(k1) k1(i); end I just don't know exactly as to how to get the varying eigenvalues to output (I know that I have to define k2 as well) using the for loop and then plot them...please help out if you can!
@jamilladambo
@jamilladambo 6 лет назад
why didn't you input the theta vector as a matrix in the same format as the excel one? Why did you have to transpose it?
@athercheema1952
@athercheema1952 8 лет назад
Can we change two variables in a MATLAB at same time by a for loop? Suppose t=1:10 and g=21:30. I want formula to run first for t=1 and g=21 then the formula should run for t=2 and g = 21,22. Then the formula should use t=3 and g=21,22,23 and so on and so forth till it takes t = 10 and g=21:30 (now all value of g). Can you please elaborate it a bit.
@asfandkhan1168
@asfandkhan1168 7 лет назад
The natural numbers less than 10 that are multiples of 4 or 9 are 4, 8 and 9. Their sum is 21.Find the sum of all the multiples of 4 or 9 less than 1000. How would you find the matlab code for such a question? please help.
@sridharbabumudhangulla8381
@sridharbabumudhangulla8381 6 лет назад
video was very helpful but there is a small confusion, i think if A(x,y) is a matrix then x represents the number of rows and y represents the number of columns but you are saying in a reverse manner which is confusing us.
@skankhunt-zw6gg
@skankhunt-zw6gg 7 лет назад
@05:08, Can you please tell me why didn't you put brackets for 0:0.01:10?
@niksyimi
@niksyimi 10 лет назад
Numerical Methods ChE McMaster is there any ways to simplify the steps used to plot the graphs?maybe using a loop? And i have some problems here, it just a simple problem regarding the column and row of the theta in LINE 34. For the function you used theta(1,:) = the functions, when i run it it will be 4x1001 matrix and it not the same as you which is 1001x4 matrix. I need to change the codes back to theta (:,1) to get the same result 1001x4 as you get. Can you explain this?
@numericalmethodschemcmaste6084
@numericalmethodschemcmaste6084 10 лет назад
Sure I can help you out here. When it comes to plotting quickly, it can certainly be done in a loop. However, without some cleverness you lose a bit of autonomy there. A potential loop for plotting these functions might look like hold on; for j = 1:n plot(theta(j,:),'LineWidth',2); end The above code will automatically plot each, but will use the default line colours and styles (as in lines, not dots or symbols). It is possible to customize the colours and styles of the lines, but to do so my suggestion would be to make an [n x 3] matrix of RGB colour coordinates and then call them for the line colour option in the loop. Just use "doc plot" in matlab and you should see how you can use the RGB system. For example, [0 0 0] is black and [255 0 0] is red. As for your second question, I actually do get a 4 x 1001 matrix in that loop, but when I call it in the command window I am calling theta' (with an apostrophe), which transposes the matrix, thereby making it look like a 1001 x 4. Hope that helps!
@niksyimi
@niksyimi 10 лет назад
tq bro...its really help me :) keep uploading new videos
@kirankumar-ms4rc
@kirankumar-ms4rc 4 года назад
Could you please explain simulink in the same manner by looking into that document,it would really helpful
@beoptimistic5853
@beoptimistic5853 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vFDMaHQ4kW8.html 💐
@kaznW
@kaznW 9 лет назад
Is that a Dark Souls wallpaper i see? ^^
@whitewolf6463
@whitewolf6463 8 лет назад
Good video boss but I prefer if you dont use the word "garbage "for mathematics and physics. This is not garbage. Reality shows are garbage.
@Meinan4370
@Meinan4370 3 года назад
why did you stop?
@beoptimistic5853
@beoptimistic5853 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vFDMaHQ4kW8.html 💐
@omarsharief9817
@omarsharief9817 6 лет назад
very good
@omarsharief9817
@omarsharief9817 6 лет назад
it is very helpful
Далее
MATLAB Tutorial 1 - Intro and Basics
18:26
Просмотров 51 тыс.
MATLAB Function Plotting Basics
9:21
Просмотров 520 тыс.
MATLAB Tutorial 2 - Creating Matrices and Matrix Math
26:47
Lesson 6.1 for-loops in MATLAB
36:51
Просмотров 133 тыс.
11.1 For loop in MATLAB
31:29
Просмотров 803
Learn Particle Swarm Optimization (PSO) in 20 minutes
19:08
Matlab: Exercise 11: Loops
15:14
Просмотров 319
FOR loops in MATLAB: Nested FOR loops
7:32
Просмотров 335 тыс.