Intro to Matlab functions and classes

  Рет қаралды 46,714

Anders Munk-Nielsen

Anders Munk-Nielsen

7 жыл бұрын

In this video, I show how to work with Matlab functions either as "anonymous" functions (or "inline" functions), functions in separate function files, or functions organized into a static Matlab class.
In our course, we are only going to use classes as a convenient way of organizing functions so that they are all in the same file together with other related functions. This is for example going to be convenient when we lump together the functions for simulating data, getting starting values, evaluating the criterion function (e.g. likelihood function), or estimating a particular estimator.

Пікірлер: 27
@emg6610
@emg6610 6 жыл бұрын
You have just saved me! Thank you very much, Sir!
@FlippyBrown
@FlippyBrown 4 жыл бұрын
Thank you so much for this tutorial! Very clear and precise instructions! :)
@brpal5443
@brpal5443 4 жыл бұрын
Thanks a lot Sir, very clear lesson!
@parasjain3246
@parasjain3246 5 жыл бұрын
thank you sir for the explanation
@yitongzhou124
@yitongzhou124 3 жыл бұрын
Thank you so much!
@lluisslas1379
@lluisslas1379 4 жыл бұрын
thx very much :)
@blyat.vovisss6227
@blyat.vovisss6227 Жыл бұрын
Thank you
@user-ee3qt2fb7i
@user-ee3qt2fb7i 5 жыл бұрын
thx bro
@darshangandhi6349
@darshangandhi6349 3 жыл бұрын
Thanks
@mohammadrahnama4278
@mohammadrahnama4278 7 жыл бұрын
Thank you for such an informative video. My question is about the data which are located in a class. Are they available on another class or main code? How can I have classes which contain common data?
@superpronker
@superpronker 7 жыл бұрын
Dear Mohammad, When you say 'data', what do you mean specifically? Are you referring to the functions in the classes or to the so-called 'properties' of the class? In the latter case, you have to assign the properties as 'Public'. Cheers!
@danny_racho
@danny_racho 3 жыл бұрын
What shortcut did you use around 10:32 ? It looks like your were able to combine it all together again without clicking each element
@malekebadi9805
@malekebadi9805 3 жыл бұрын
ctrl + , OR ctrl + shft + , works on windows. One is folding and the other for expanding.
@kenlam9676
@kenlam9676 5 жыл бұрын
Hey it is possible to do like if statement along with class ?
@AndersMunkNielsen
@AndersMunkNielsen 5 жыл бұрын
Yes, a class' functions can have if statements in them. I'm not sure if I fully understand what you are asking?
@srhirmarouane4597
@srhirmarouane4597 6 жыл бұрын
Hello Anders Munk-Nielsen, Thank you for all this information, my question is what is the difference between a class and a function? what can be a plus if i choose a class in my programm instead a function? thank you. Marouane Srhir
@superpronker
@superpronker 6 жыл бұрын
A simple class is just a collection of individual functions. More advanced classes can do more than that.
@srhirmarouane4597
@srhirmarouane4597 6 жыл бұрын
Thank you for your fast answer, good job.
@srhirmarouane4597
@srhirmarouane4597 6 жыл бұрын
Do you have any idea about the time of simulation between a class and a function?
@superpronker
@superpronker 6 жыл бұрын
I don't think you will experience any difference.
@orlandodonascimento1728
@orlandodonascimento1728 7 жыл бұрын
Hola Anders Munk-Nielsen , Could you please explain to me if possible how to average 10 or more frames using Matlab. Kind Regards, Orlando
@superpronker
@superpronker 7 жыл бұрын
Hi Orlando. I'm not sure what you mean with "frames"? Do you mean matrices?
@technologymentor786
@technologymentor786 3 жыл бұрын
1. Name 5 classes of objects in MATLAB?
@Lebedev171
@Lebedev171 4 жыл бұрын
How to use properties?
@superpronker
@superpronker 4 жыл бұрын
Your question is quite general, which makes it hard to answer. But my guess is you should start by understanding "Constant" properties. See e.g. se.mathworks.com/help/matlab/matlab_oop/properties-with-constant-values.html
@piyushkant1921
@piyushkant1921 2 жыл бұрын
bulls eye
@mariamabd5839
@mariamabd5839 3 жыл бұрын
You have just saved me! Thank you very much, Sir!
Functions vs Classes: When to Use Which and Why?
10:49
ArjanCodes
Рет қаралды 146 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 101 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 796 М.
Creating User-Defined Functions in MATLAB: Syntax and Examples
17:00
Spartan Professor
Рет қаралды 29 М.
Why I Chose Rust Over Zig
33:18
ThePrimeTime
Рет қаралды 15 М.
3 Ways to Create a Function in MATLAB
4:14
Christi Patton Luks
Рет қаралды 31 М.
Mastering Programming with MATLAB: (16) Handle Classes
59:39
Jalal Khan
Рет қаралды 2,7 М.
What are Classes, Objects, and Constructors?
4:22
Web Dev Simplified
Рет қаралды 140 М.
Object oriented programming in matlab
36:44
CodeTheMath
Рет қаралды 18 М.
Object-Oriented Programming with MATLAB
1:04:15
MATLAB
Рет қаралды 15 М.
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 745 М.
QANAY - Шынарым (Official Mood Video)
2:11
Qanay
Рет қаралды 1 МЛН
Serik Ibragimov - Сен келдің (mood video) 2024
3:19
Serik Ibragimov
Рет қаралды 1,8 МЛН
V $ X V PRiNCE - Не интересно
2:48
V S X V PRiNCE
Рет қаралды 2,6 МЛН
Минаева - Шоколадка
2:49
Gazgolder
Рет қаралды 1,1 МЛН