Are there any examples of object oriented programming other than those in the Using MATLAB manual?
6 views (last 30 days)
Show older comments
Are there any examples of object oriented programming other than those in the Using MATLAB manual?
Accepted Answer
MathWorks Support Team
on 28 Jan 2010
The MATLAB Toolbox comes with an inline class. This class allows you to create an object rather than a one line function MATLAB file that is used for all the function functions such as fmin, fplot, fzero,etc. Any of the methods and the constructor of the inline class can be viewed in a text editor. The available methods can be determined with the METHODS command:
methods('inline')
Another good way to learn object oriented programming in MATLAB is to look at the 'sym' class in the Symbolic Toolbox and the 'lti','ss','tf','zpk' classes in the Control Systems Toolbox.
0 Comments
More Answers (0)
See Also
Categories
Find more on Function Creation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!