- A.H. Register describes an enhanced version of the old OOP, which I assume he had developed without knowledge of the new OOP.
- The old OOP is removed from the documentation. If the code is still included in MATLAB, that's to make it possible to run old programs.
- I'm convinced that old or new won't significantly affect the performance of your nonlinear optimization.
- Maybe you shouldn't use OOP at all.
Comparison: Object oriented programming in Matlab (Pre R-2008 and Post R-2008)
3 views (last 30 days)
Show older comments
Hi, I've recently started to learn Object-Oriented Programming to develop a toolbox for nonlinear control algorithms (optimization-based)in Matlab. I came across a book "A Guide to MATLAB Object-Oriented Programming" by A. H. Register from year 2007. It uses old syntax for OOP in Matlab and read some threads that this old syntax is obsolete but still supported in Matlab. The new syntax looks more intuitive and easy to understand and somewhat close to C++ class. Before I start to implementing code, I need to get some expertise opinions regarding pros and cons of each syntax according to the following criteria:
- Performance regarding execution time: My algorithms will be based on nonlinear optimization techniques, therefore, performance is the most important key factor. Which OOP syntax leads to better execution time for the same problem?
- Support: Will old OOP-syntax be supported in the future releases?
If there are some other criteria related to the pros and cons of OOP-syntax's, I'll be very glad to know.
Many thanks in advance.
Regards, Saif
5 Comments
Adam
on 28 Mar 2017
Certainly it sounds like it is worth redesigning to OOP. Performance can always be considered afterwards too using the profiler.
Answers (0)
See Also
Categories
Find more on Digital Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!