MATLAB Tutorial 3 - FOR Loops and Plots

  Рет қаралды 111,082

Numerical Methods ChE McMaster

Numerical Methods ChE McMaster

11 жыл бұрын

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

Пікірлер: 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!!
@wareefm.s.3655
@wareefm.s.3655 8 жыл бұрын
that was AMAZING, thank you a lot for these tutorials
@adel7854
@adel7854 6 жыл бұрын
Thank you so much for your simplified explanation. I learned different things from this lesson.
@drumcoversbydick
@drumcoversbydick 8 жыл бұрын
Good video - helpful and easy to understand. Thanks!
@sandipvasani6204
@sandipvasani6204 8 жыл бұрын
Really Very Informative..........You have done Great Job.
@emperoy8
@emperoy8 8 жыл бұрын
Amazing Job. Well done
@parakit11
@parakit11 7 жыл бұрын
Thank you so so so much. You helped me understand for loop.
@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
@md.imranhossain7658
@md.imranhossain7658 6 жыл бұрын
Thank you, very helpful video.
@robosergTV
@robosergTV 8 жыл бұрын
very very helpful, thx!
@luizgonzaga750
@luizgonzaga750 10 жыл бұрын
Very good!
@gencaypolat8901
@gencaypolat8901 4 жыл бұрын
You are just amazing!
@beoptimistic5853
@beoptimistic5853 3 жыл бұрын
kzbin.info/www/bejne/rHenfpR-hpmejZo 💐
@alizar606
@alizar606 3 жыл бұрын
very interesting and nice explaining . thanks brother
@beoptimistic5853
@beoptimistic5853 3 жыл бұрын
kzbin.info/www/bejne/rHenfpR-hpmejZo 💐
@shazzadhasan4067
@shazzadhasan4067 6 жыл бұрын
amazing. thanks a lot
@barbaracarnauba1507
@barbaracarnauba1507 4 жыл бұрын
Very helpful!!! Thank you!
@beoptimistic5853
@beoptimistic5853 3 жыл бұрын
kzbin.info/www/bejne/rHenfpR-hpmejZo 💐
@rociogonzalezmeza2252
@rociogonzalezmeza2252 10 жыл бұрын
thanks! now it seems easy (:
@dantearturorodriguezcamach2550
@dantearturorodriguezcamach2550 9 жыл бұрын
+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
@mechanicalfreaks5958
@mechanicalfreaks5958 6 жыл бұрын
OMG you are a life saver dude
@mechanicalfreaks5958
@mechanicalfreaks5958 6 жыл бұрын
amazing tutorials
@TheLeykis101
@TheLeykis101 7 жыл бұрын
NICE!
@SANzer0
@SANzer0 10 жыл бұрын
thanks soooo much
@SuperFloyd187
@SuperFloyd187 9 жыл бұрын
Thank you
@Peter_1986
@Peter_1986 9 жыл бұрын
You have a beautiful voice.
@BrandonSLockey
@BrandonSLockey 3 жыл бұрын
sooothing
@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??
@ruthwickreddy8568
@ruthwickreddy8568 6 жыл бұрын
bro thanks a lot...............
@JKS323
@JKS323 6 жыл бұрын
I don't know why but the second method makes more sense to me.
@samuelwamwere4867
@samuelwamwere4867 2 жыл бұрын
Thanks
@alizar606
@alizar606 3 жыл бұрын
please keep it up .
@linemob1
@linemob1 10 жыл бұрын
very good
@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!
@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.
@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?
@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?
@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.
@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 жыл бұрын
kzbin.info/www/bejne/rHenfpR-hpmejZo 💐
@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
@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 жыл бұрын
kzbin.info/www/bejne/rHenfpR-hpmejZo 💐
@omarsharief9817
@omarsharief9817 6 жыл бұрын
very good
@omarsharief9817
@omarsharief9817 6 жыл бұрын
it is very helpful
MATLAB Tutorial 4 - A Look at Creating and Calling Functions!
21:49
Numerical Methods ChE McMaster
Рет қаралды 244 М.
Introduction to State-Space Equations | State Space, Part 1
14:12
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 14 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 7 МЛН
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Linearity and nonlinear theories. Schrödinger's equation
10:03
MIT OpenCourseWare
Рет қаралды 335 М.
ANOVA in FDSA tamil||AD3491||Anna university reg-2021.
8:39
Murugan Tech World
Рет қаралды 91
AdaBoost, Clearly Explained
20:54
StatQuest with Josh Starmer
Рет қаралды 738 М.
Running a Buffer Overflow Attack - Computerphile
17:30
Computerphile
Рет қаралды 2 МЛН
Backpropagation Details Pt. 2: Going bonkers with The Chain Rule
13:09
StatQuest with Josh Starmer
Рет қаралды 124 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 14 МЛН