This screencast discusses the basics of user-defined functions in MATLAB, including syntax and the differences between functions and scripts. A couple of basic examples of functions are built too.
This is amazing explanation. My teacher explained it for the entire class time and I had no clue what he said. But it only took the first 5 minutes on this video to make sense.
Thank you so much!!!! My teacher has us reading an e-book about MatLab, and, whenever I get confused about what it's talking about, I come and watch a video to understand it.
Thank-you so much for all of these videos, they are helping me immensely!! What is so great is that yoou give the intuition, as well as the mechanics, which makes all the difference! I am however having a problem with the intuitoin on global variables and function files... if you had the time to do a quick video on that I would be extremely grateful! Best Regards,
I also think you are a fantastic professor. Good thing I didn't ask about the dot (syntax for a vector or list) on the 2nd lesson I listened to (the Force of gravity formula could accept an array for the distance between the centers of the objects). I'm looking forward to your other RU-vid videos. .
Thank you! I have a question though. In the function you are creating a new variable called 'grades'. Why does this not appear in the workspace now? For instance: instead of calling your vector 'v', call it 'grades'. From the function script it looks like you are altering the original vector, by sorting it and replacing the first variable with the average. If you run it however, the original variable is left unchanged (when it is given the same name as the one in the function). Why is this?
Quick question, How would you define and call a function that takes in a vector say x, and two scalars say m and s , for the function f(x)= m+s/x , please help! thank you!
How can I "vectorize" this function? ((-1)^n)*(n*2+1)^(-3) When I input a vector like ([...]), I get the "matrix must be square" error. I've tried putting dots after every n, also after the second n alone, and after every parentheses where the n appears, but none of them work... How can I do it? Thanks!
If I'm not mistaken, you called the second function with a different name than the one you declared it with at 8:40 , and this will never be accepted by any language compiler. How could this happened?
rlly good work. but criticism: u speak rlly fast without even a small break. it would be more pleasant for the audience. even if your video is 1 minute longer. but i have to praise your pictures and the build up you are using