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.
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