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.

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

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?

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

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

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