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
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! :)
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.
+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!!!!
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??
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!
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.
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.
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.
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?
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!