Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packaging of MATLAB code

In the recent question "How to organize MATLAB code?" Andrew Janke mentioned in his answer using classes to organize MATLAB functions into packages:

... consider rewriting some of the code as objects, using stateless utility classes with class methods and private functions as ways of packaging related functions together and providing some encapsulation. ... In classic MATLAB, classes are your only way of doing some sort of packages.

Would you please provide more information on it? Links, code examples to understand the concept.

like image 802
yuk Avatar asked Nov 27 '25 08:11

yuk


1 Answers

Loren hosted a guest blogger to discuss this issue:

http://blogs.mathworks.com/loren/2008/08/18/when-to-create-classes-in-matlab/

I made a simple video about this:

http://blogs.mathworks.com/videos/2008/07/07/advanced-matlab-class-system-for-oop-in-matlab-introduction/

Of course the MATLAB documentation for this:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brh2rgw.html

like image 99
MatlabDoug Avatar answered Nov 29 '25 22:11

MatlabDoug



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!