Intro to Matlab functions and classes

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.

Comments

Andy Ruan says:

Thank you very much for this video! It is very clear to follow and organized (best one I found on youtube!)

Mohammad Rahnama says:

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?

Edward Medina Guerra says:

You have just saved me! Thank you very much, Sir!

Orlando Lopes do Nascimento says:

Hola Anders Munk-Nielsen , Could you please explain to me if possible how to average 10 or more frames using Matlab. Kind Regards, Orlando

Srhir Marouane says:

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

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!