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

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours